Re: Example of join using Solr/Lucene

2013-11-06 Thread Alvaro Cabrerizo
You can also go further and ask: Give me all the people that drive a toyota (company->car->people): *q=*:*&fq=*:* AND _query_:"{!join to=id from=ownerId}id:* AND _query_:{!join to=companyId from=id}name:toyo*"* If we divide this query in fragments we got: - *q=*:** which is restriction ove

Re: Example of join using Solr/Lucene

2013-11-06 Thread Alvaro Cabrerizo
For example, a dummy schema (if we index the former data in separate documents) should look like this: ... ...

Re: Example of join using Solr/Lucene

2013-11-06 Thread Alvaro Cabrerizo
You can check these links: http://wiki.apache.org/solr/Join http://stackoverflow.com/questions/12665797/is-solr-4-0-capable-of-using-join-for-multiple-core Regards. On Wed, Nov 6, 2013 at 1:00 AM, Tech Id wrote: > Hi Alvaro, > > Could you please point me to some link from where I can see ho

Re: Example of join using Solr/Lucene

2013-11-05 Thread Tech Id
Hi Alvaro, Could you please point me to some link from where I can see how to index two documents separately (joined by foreign keys). Or if you can oblige by putting down some details here itself. *For example*, say if user has entities like : car {id:5, color:red, year:2004, companyId:23, ow

Re: Example of join using Solr/Lucene

2013-11-05 Thread Alvaro Cabrerizo
In my case, everytime I've used joins, the FROM field was a multivalued string and the TO was an univalued string. Regards. El 05/11/2013 18:37, "Tech Id" escribió: > I think Solr has the ability to do joins in the latest version as verified > on this issue: https://issues.apache.org/jira/browse

Re: Example of join using Solr/Lucene

2013-11-05 Thread Tech Id
I think Solr has the ability to do joins in the latest version as verified on this issue: https://issues.apache.org/jira/browse/SOLR-3076 And some online resources point to this example: http://blog.mikemccandless.com/2012/01/searching-relational-content-with.html However, I am not sure if the abo

Example of join using Solr/Lucene

2013-11-05 Thread Tech Id
Hi, I have been searching for an example of joins using solr/lucene. But I have not found anything either on the net or in the src/examples. Can someone please point me to the same? Ideally, I need a join working with Solrj APIs (Please let me know if this group is Lucene-specific). Best Regard