solr-search

Solr how to get only the exact match

ぐ巨炮叔叔 提交于 2021-02-11 12:46:35
问题 Sample tags field. "tags":["[\"Rectangle\",\"Product\",\"Font\",\"Rectangle\",\"Product\",\"Rectangle\",\"Snack\",\"Product\",\"Material property\",\"Product\",\"Material property\"]"], When I search the keyword land in the tags field I get the results that contain land vehicle q=tags:land "tags":["[\"Land vehicle\",\"Vehicle\"]"] - I do not want this to produce a match. <fieldType name="text_general" class="solr.TextField" positionIncrementGap="100" multiValued="true"> <analyzer type="index"

Solr how to get only the exact match

好久不见. 提交于 2021-02-11 12:45:19
问题 Sample tags field. "tags":["[\"Rectangle\",\"Product\",\"Font\",\"Rectangle\",\"Product\",\"Rectangle\",\"Snack\",\"Product\",\"Material property\",\"Product\",\"Material property\"]"], When I search the keyword land in the tags field I get the results that contain land vehicle q=tags:land "tags":["[\"Land vehicle\",\"Vehicle\"]"] - I do not want this to produce a match. <fieldType name="text_general" class="solr.TextField" positionIncrementGap="100" multiValued="true"> <analyzer type="index"

Getting “Parent filter should not be sent when the schema is nested” when using parent filter in fl in solr 8

被刻印的时光 ゝ 提交于 2019-12-11 03:24:49
问题 I am trying to fetch the parent document with child documents. But getting " Parent filter should not be sent when the schema is nested " error. Attached the query in below that I have tried but I can't get the solution q : {!parent which=content_type:person} fl : *, [child parentFilter=content_type:person] Below is the document that I have added to solr core. Collection<SolrInputDocument> batch = new ArrayList<>(); // Parent Doc 1, a person mamed John Jones SolrInputDocument person1 = new