[ https://issues.apache.org/jira/browse/SOLR-4020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13488164#comment-13488164 ]
Hoss Man commented on SOLR-4020: -------------------------------- Indika: There is something subtle going on here that i can't make sense of. I tried to write a test that would demonstrate the problem you are seeing, and i couldn't get it to fail.. https://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/solrj/src/test/org/apache/solr/client/solrj/SolrExampleTests.java?r1=1404319&r2=1404318&pathrev=1404319 ...can you please post a more complete (ie: runnable) example of SolrJ client code that demonstrates this problem for you when running the 4.0 example jetty & solr configs (or attach the solr configs/schema you are using) as well as the full stack trace of the error you get. > SolrJ 4.0.0 not serializing multilple filter queries correctly > -------------------------------------------------------------- > > Key: SOLR-4020 > URL: https://issues.apache.org/jira/browse/SOLR-4020 > Project: Solr > Issue Type: Bug > Components: clients - java > Reporter: Indika Tantrigoda > Labels: solrclient, solrj > > Using multiple filter queries in a solrQuery causes an exception with the > following details. > org.apache.solr.common.SolrException: > org.apache.lucene.queryparser.classic.ParseException: Cannot parse > '[Ljava.lang.String;@1ec278b5': Encountered "<EOF>" at line 1, column 28. > Was expecting one of: > "TO" ... > <RANGE_QUOTED> ... > <RANGE_GOOP> ... > The issues come up when using addFilterQuery() in the following manner: > solrQuery.addFilterQuery("{!field f=facet_state}CA"); > solrQuery.addFilterQuery("{!field f=facet_city}Test City"); > or using it in the following way > solrQuery.setFilterQueries("{!field f=facet_state}CA", "{!field > f=facet_city}Test City"); > solrQuery.addFilterQuery("{!field f=facet_state}CA", "{!field > f=facet_city}Test City"); > even if solrQuery.add() is used the issue still comes up > solrQuery.add("fq", "your first filter"); > solrQuery.add("fq", "your second filter"); > In any case having multiple filter queries causes the issue. > It seems that SolrJ is serializing a String[] instead of the separate String > values. ModifiableSolrParams.java add() might be a good place to start the > investigations. > Thanks. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org