Hi everyone, I am trying to link two types of documents in my Solr index. The parent is named "house" and the child is named "available". So, I want to return a list of houses that have available documents with some filtering. However, the following query gives me around 18 documents, which is wrong. It should return 0 documents.
q=*:* &fq={!join from=house_id_fk to=house_id}doctype:available AND discount:[1 TO *] AND start_date:[NOW/DAY TO NOW/DAY%2B21DAYS] &fq={!join from=house_id_fk to=house_id}doctype:available AND sd_year:2014 AND sd_month:11 To debug it, I tried first to check whether there is any available documents with the given filter queries. So, I tried the following query: q=*:* &fq=doctype:available AND discount:[1 TO *] AND start_date:[NOW/DAY TO NOW/DAY%2B21DAYS] &fq=doctype:available AND sd_year:2014 AND sd_month:11 The query gives 0 results, which is correct. So as you can see both queries are the same, the different is using the join query parser. I am a bit confused, why the first query gives results. My understanding is that this should not happen because the second query shows that there is no any available documents that satisfy the given filter queries. -- View this message in context: http://lucene.472066.n3.nabble.com/Join-and-non-Join-query-give-different-results-tp4146922.html Sent from the Solr - User mailing list archive at Nabble.com.