Solr 500 error while searching for phrase for text field

receiving request error:

LNm: "PersonLastName III"

Answer: "field" LNm \ "was indexed without position data, cannot start PhraseQuery '

Scheme:

<field name="LNm" type="text_general" indexed="true" stored="true"/> <fieldType name="text_general" class="solr.TextField" positionIncrementGap="100"> <analyzer type="index"> <tokenizer class="solr.StandardTokenizerFactory"/> <filter class="solr.LowerCaseFilterFactory"/> </analyzer> <analyzer type="query"> <tokenizer class="solr.StandardTokenizerFactory"/> <filter class="solr.LowerCaseFilterFactory"/> </analyzer> </fieldType> 
+7
solr phrase
source share
2 answers

This is because you changed the field_type from a string to text_general and did not make a clean index. Therefore, the indexer does not have the necessary location data. First clean the kernel with

 /your_core_name/update?stream.body=<delete><query>*:*</query></delete>&commit=true 

then index this core.

Note: the above update code will delete all your data in the kernel, and this cannot be undone!

+13
source share

I also got the same error due to the use of copies in the "PF" parameter for solr. remove all copy fields from the "PF" parameter, it will work smoothly.

My Solr Schema => copyField source = "name" dest = "sname"

My SolrConfig file => attr_Cuisines ^ 20 sname ^ 10 neighborhood ^ 5 tackles ^ 10 tags ^ 1 features ^ 2

when i removed the "sname" parameter from "pf" it worked

0
source share

All Articles