getting query error on :
LNm:"PersonLastName III"
Response is: "field \"LNm\" was indexed without position data; cannot run PhraseQuery'
Schema is:
<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>
This is because you changed field_type from string to text_general and didn't do a clean index. So indexer doesn't have necessary position data. First empty your core using
/your_core_name/update?stream.body=<delete><query>*:*</query></delete>&commit=true
then index this core.
Attention: the update code above will delete all your data in core and this cannot be undone!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With