Re: How to use joins in solr 4.3.1

2013-07-16 Thread Erick Erickson
You can only join on indexed fields, our Location:merchantId field is not indexed. Best Erick On Tue, Jul 16, 2013 at 2:48 PM, Utkarsh Sengar wrote: > Found this post: > http://mail-archives.apache.org/mod_mbox/lucene-solr-user/201302.mbox/%3CCAB_8Yd82aqq=oY6dBRmVjG7gvBBewmkZGF9V=fpne4xgkbu...@m

Re: How to use joins in solr 4.3.1

2013-07-16 Thread Utkarsh Sengar
Found this post: http://mail-archives.apache.org/mod_mbox/lucene-solr-user/201302.mbox/%3CCAB_8Yd82aqq=oY6dBRmVjG7gvBBewmkZGF9V=fpne4xgkbu...@mail.gmail.com%3E And based on the answer, I modified my query: localhost:8983/solr/location/ select?fq={!join from=key to=merchantId fromIndex=merchant}*:*

Re: How to use joins in solr 4.3.1

2013-07-16 Thread Utkarsh Sengar
Looks like the JoinQParserPlugin is throwing an NPE. Query: localhost:8983/solr/location/select?q=*:*&fq={!join from=key to=merchantId fromIndex=merchant} 84343345 [qtp2012387303-16] ERROR org.apache.solr.core.SolrCore – java.lang.NullPointerException at org.apache.solr.search.JoinQuery.hashC

Re: How to use joins in solr 4.3.1

2013-07-16 Thread Erick Erickson
Not quite sure what's the problem with the second, but the first is: q=: That just isn't legal, try q=*:* As for the second, are there any other errors in the solr log? Sometimes what's returned in the response packet does not include the true source of the problem. Best Erick On Mon, Jul 15, 2

Re: How to use joins in solr 4.3.1

2013-07-15 Thread Utkarsh Sengar
I have also tried these queries (as per this SO answer: http://stackoverflow.com/questions/12665797/is-solr-4-0-capable-of-using-join-for-multiple-core ) 1. http://_server_.com:8983/solr/location/select?q=:&fq={!join from=merchantId to=merchantId fromIndex=merchant}walgreens And I get this: {

How to use joins in solr 4.3.1

2013-07-15 Thread Utkarsh Sengar
Hello, I am trying to join data between two cores: merchant and location This is my query: http://_server_.com:8983/solr/location/select?q={!join from=merchantId to=merchantId fromIndex=merchant}walgreens Ref: http://wiki.apache.org/solr/Join Merchants core has documents for the query: "walgree