Hi,
thanks for advice. But I need to use parent_condition and child_condition in
same time.
Parent condition is: (name:Thomas AND age:40)
Child condition: (name:John AND age:17)
join from=parent to=id
So something like:
(name:Thomas AND age:40) AND {!join from=parent to=id}(name:John AND age:17)
Hi Roman,
from solr webservice or admin interface you receive correct result
this is you correct join query syntax
{!join from=parent to=id}(name:John AND age:17)
you can add this directly by query.setQuery() method.
-
Complicare è facile, semplificare é difficile.
Complicated i
Nobody?
I just found nested queries can be used
(http://mullingmethodology.blogspot.cz/2012/03/adventures-with-solr-join.html).
But I don't like this solution, it is too complicated and not very readable
...
So is there any way how use JOIN with Solrj? Any idea? :)
--
View this message in con
Hi,
I can't found any good example how use Join function with Solrj 4.0 api.
Let's have this example data:
1
Thomas
40
2
John
17
1
And code:
String stringQuery = "(name:Thomas) AND (age:40)";
SolrQuery query = new SolrQuery();
query.setQuery