On Nov 24, 2008, at 6:12 AM, Antonio Zippo wrote:
is it possible to have and AND query on a multivalue text?

i need to extract the record only if the words are contained inside the same value

for example
1st record:

<arr name="myText">
<str>The U.S. government has announced a massive rescue package for Citigroup, saying it would guarantee more than $300 billion in company assets</str> <str>while injecting an additional $20 billion in capital into the embattled bank. </str>
</arr>

2nd record
<arr name="myText">
<str>bla bla bla guarantee bla bla bla</str>
<str>while injecting an additional $20 billion in capital into the embattled bank. </str>
</arr>


i need to search something as
myText:billion AND guarantee

i need to be extracted only the record where the words exists in the same value (in this case only the first record) because in the 2nd record the two words are in different values

is it possible?

It's not possible with a purely boolean query like this, but it is possible with a sloppy phrase query where the position increment gap (see example schema.xml) is greater than the slop factor.

        Erik

Reply via email to