Ah... now I understand - they are separate terms in the same field.

You want:

NORM_BUS_NME:(TEST TEST1 TEST2)^35.44 OR TRIGRAM_NORM_BUS_NME:(TEST TEST1 TEST2)^20

Even so, I'm not confident that I really know what you are really after - try explaining in simple English first.

-- Jack Krupansky

-----Original Message----- From: vibhoreng04
Sent: Sunday, June 02, 2013 5:20 PM
To: solr-user@lucene.apache.org
Subject: Re: Individual Query Works fine but OR Query not worning

Hi Jack,

But the problem is after putting the backslash like this-
(NORM_BUS_NME:TEST\ TEST1\ TEST2)^35.44 OR (TRIGRAM_NORM_BUS_NME:TEST\
TEST1\ TEST2)^20 the records which I get are like AND ....not OR.
For an example if I check individually -

(NORM_BUS_NME:TEST\ TEST1\ TEST2) gives 1 result and
(TRIGRAM_NORM_BUS_NME:TEST\ TEST1\ TEST2) gives 355.
* So the OR query should return me 355 but it returns just one.*


Additonal Info : Here Trigram is a Edge NGram multivalued field and
NORM_BUS_NME is a Tokeized normalised lower case field.


Vibhor Jaiswal
Jack Krupansky-2 wrote
If you have a space in field value, either enclose the entire field value
in
quotes:

"TEST1 TEST"

Or escape each space with a single backslash:

TEST1\ TEST

In your example, the space in the first term is preceded by a double
backslash and the space in the second term is unescaped.

-- Jack Krupansky

-----Original Message----- From: vibhoreng04
Sent: Sunday, June 02, 2013 3:04 PM
To:

solr-user@.apache

Subject: Individual Query Works fine but OR Query not worning

Hi,

There seems to be a problem in the querying.My query is like-

(NORM_BUS_NME:TEST1\\ TEST)^35.44 OR (TRIGRAM_NORM_BUS_NME:TEST1 TEST)

Individually NORM_BUS_NME:TEST1\\ TEST query returns 1 result and
TRIGRAM_NORM_BUS_NME:TEST1 TEST
returns 355 results but after I do an OR operation the resultant resultet
is
just 1.
What might be the issue with this.

Please help.

Vibhor Jaiswal



--
View this message in context:
http://lucene.472066.n3.nabble.com/Individual-Query-Works-fine-but-OR-Query-not-worning-tp4067666.html
Sent from the Solr - User mailing list archive at Nabble.com.





--
View this message in context: http://lucene.472066.n3.nabble.com/Individual-Query-Works-fine-but-OR-Query-not-worning-tp4067666p4067684.html Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to