I would like to search for categories that their id AND score matching
some values. My problem is that the results contain categories that
either their cId or cScore matches the criteria. This is the query I
used:
This is how the search work. One way to solve this is to have a document per "array instance", then you can do this join.
On Tuesday, January 18, 2011 at 2:48 PM, barak wrote:
Hello,
I'm indexing documents that contains arrays, for example:
I would like to search for categories that their id AND score matching
some values. My problem is that the results contain categories that
either their cId or cScore matches the criteria. This is the query I
used:
I would like to search for categories that their id AND score matching
some values. My problem is that the results contain categories that
either their cId or cScore matches the criteria. This is the query I
used:
I mean that each index document will be an element in the array. For example, you will have a recover_property as a document, and not a record.
On Tuesday, January 18, 2011 at 8:52 PM, barak wrote:
Can you explain the "document per array instance"? Should the array be
key?..
I would like to search for categories that their id AND score matching
some values. My problem is that the results contain categories that
either their cId or cScore matches the criteria. This is the query I
used:
I would like to search for categories that their id AND score matching
some values. My problem is that the results contain categories that
either their cId or cScore matches the criteria. This is the query I
used:
I would like to search for categories that their id AND score matching
some values. My problem is that the results contain categories that
either their cId or cScore matches the criteria. This is the query I
used:
Lets say you index a document, and it has an array of two fields, field1, and field2, then you run into the problem mentioned in the first mail, where doing field1 AND field2 might return hits where the field1 value exists in one array element, and field2 exists in another.
A way to solve this is to index each array element as a different document. A single document that consists of a single value of field1 and a single value of field2.
-shay.banon
On Thursday, January 20, 2011 at 4:14 PM, barak wrote:
I'm still trying to solve this issue, can anyone help with an example?
I googled for it, but I can't find something helpful..
I would like to search for categories that their id AND score matching
some values. My problem is that the results contain categories that
either their cId or cScore matches the criteria. This is the query I
used:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.