[ 
https://issues.apache.org/jira/browse/SOLR-7906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14681096#comment-14681096
 ] 

nelson maria commented on SOLR-7906:
------------------------------------

Hi. Thanks for watching. I was wondering where i can attach place comment until 
i found out i was logged out.

I've attached a text file containing the field definition in schema.xml

The issue concerns to fields (pgmna and Serna) which i'm using in combination 
to do exact & fuzzy match on both.

pseudo code of the url should be something like this.

http//localhost..q(:PgmNa:\"exact\" or Pgmnafuzzy:"exact~.75") AND 
(:SerNa:\"exact\" or 
Sernafuzzy:"exact~.75")&wt=json&flPgmscore:strdist(....,Sernscore:strdist(...

The url will return NPE if i send as if. However, If i remove the 
stringdistance score for SErna, the error is again.

Another is if I change "AND" between the two sets to "OR", i am not getting the 
NPE.

http://localhost:8080/query?q=%28%28PgmNaFuzzy%3A%28tradition~0.75+with~0.75+a~0.75+twist~0.75%29+OR+PgmNa%3A%22tradition+with+a+twist%22%29AND+%28SerNaFuzzy%3A%28quilting~0.75+arts~0.75%29%29%29+AND+SerInd%3A%22Y%22+AND+-PgmTypCde%3A%22133%22+AND+%28ShowYr%3A%222015%22+OR+ShowYr%3A%5B*+TO+1939%5D%29&wt=json&fl=id,PgmCde,PgmNa,PgmPriInd,SerCde,SerNa,SerPriInd,score,SynNr,EpNr,IntCrSymVerInd,PgmPrdYr,ExpAirDt,CreTs,ShowYr,PgmEpNr,PgmTypCde,PgmVr,SerInd,SolrId,PgmNAscore:strdist(PgmNa%2C%22tradition+with+a+twist%22%2Cedit%29,SerNAscore:strdist(SerNa%2C%22quilting+arts%22%2Cedit%29&start=1&rows=50&PgmId=EP010131490183&matchtype=series_ep

> java.lang.NullPointerException from Json when doing solr search
> ---------------------------------------------------------------
>
>                 Key: SOLR-7906
>                 URL: https://issues.apache.org/jira/browse/SOLR-7906
>             Project: Solr
>          Issue Type: Bug
>          Components: clients - java
>    Affects Versions: 4.8
>         Environment: Linux
>            Reporter: nelson maria
>            Priority: Blocker
>
> Getting this response from Solr when doing search.
> {"error":{"trace":"java.lang.NullPointerException\n","code":500}}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to