What's the full stack trace in your server logs?

Regards,
   Alex.
----
Sign up for my Solr resources newsletter at http://www.solr-start.com/


On 17 December 2014 at 16:58, Trilok Prithvi <trilok.prit...@gmail.com> wrote:
> When I run the following query (Solr 4.10.2) with edit-distance, I'm
> getting a null pointer exception:
>
> *<host>/solr/select?q=fld:(Event
> ID)&fl=strdist("eventid",fld_alphaonly,edit)*
>
> <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:
> *<host>/solr/select?q=fld:(EventID)&fl=strdist("eventid",fld_alphaonly,edit)*
>
>
> 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.
>
> Thanks
> Trilok

Reply via email to