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: "walgreens" with an merchantId 1
A simple query: http://_server_.com:8983/solr/location/select?q=walgreens
returns documents called walgreens with merchantId=1

Location core has documents with merchantId=1 too.

But my join query returns no documents.

This is the response I get:
{
  "responseHeader":{
    "status":0,
    "QTime":5,
    "params":{
      "debugQuery":"true",
      "indent":"true",
      "q":"{!join from=merchantId to=merchantId
fromIndex=merchant}walgreens",
      "wt":"json"}},
  "response":{"numFound":0,"start":0,"maxScore":0.0,"docs":[]
  },
  "debug":{
    "rawquerystring":"{!join from=merchantId to=merchantId
fromIndex=merchant}walgreens",
    "querystring":"{!join from=merchantId to=merchantId
fromIndex=merchant}walgreens",
    "parsedquery":"JoinQuery({!join from=merchantId to=merchantId
fromIndex=merchant}allText:walgreens)",
    "parsedquery_toString":"{!join from=merchantId to=merchantId
fromIndex=merchant}allText:walgreens",
    "QParser":"",
    "explain":{}}}


Any suggestions?


-- 
Thanks,
-Utkarsh

Reply via email to