lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trilok Prithvi <>
Subject Search Query with editdistance - throws Null Pointer
Date Wed, 17 Dec 2014 21:58:37 GMT
When I run the following query (Solr 4.10.2) with edit-distance, I'm
getting a null pointer exception:


<response><lst name="error"><str name="trace">java.lang.NullPointerException
</str><int name="code">500</int></lst></response>

It works if I remove the space between "Event ID", like:

Here is the schema details:

<field name="fld" type="text" indexed="true" stored="true"/>
<field name="fld_alphaonly" type="alphaonly" indexed="true" stored="true"/>
<copyField source="fld" dest="fld_alphaonly" />

<fieldType name="alphaonly" class="solr.TextField" sortMissingFirst="true"
omitNorms="true"> <analyzer> <charFilter class=
"solr.HTMLStripCharFilterFactory"/> <filter class=
"solr.LowerCaseFilterFactory"/> <filter class=
"solr.PatternReplaceFilterFactory" pattern="([^a-z])" replacement="" replace
="all"/> <tokenizer class="solr.KeywordTokenizerFactory"/> </analyzer> </
fieldType> <fieldType name="text" class="solr.TextField"
positionIncrementGap="100"> <analyzer> <tokenizer class=
"solr.StandardTokenizerFactory"/> <filter class="solr.StandardFilterFactory"
/> <filter class="solr.TrimFilterFactory"/> <filter class=
"solr.ICUFoldingFilterFactory"/> </analyzer> </fieldType>

Any suggestions would be appreciated.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message