Based on your stated requirements, there is no obvious need to use the keyword tokenizer. So fix that and then quoted phrases or escaped spaces should work.

-- Jack Krupansky

-----Original Message----- From: prashantc88
Sent: Monday, July 21, 2014 11:51 AM
To: [email protected]
Subject: Re: Solr schema.xml query analyser

Thanks Jack for the reply.

I did not mention the query time analyzer in my post because I wasn't sure
what should be put there.

With regards to your reply, If I put the query term in quotes, would I get a
match for the following:

Indexed field value: foo bar
Query term: foo bar xyz/xyz foo bar

I believe it should not as it will be looking for the exact term present in
both the places.

However I want it to behave in the following way:

   If query= foo bar and textExactMatch= foo, I SHOULD NOT get a MATCH
   If query= foo bar and textExactMatch= foo bar, I SHOULD get a MATCH
   If query= foo bar and textExactMatch= xyz foo bar/foo bar xyz, I SHOULD
get a MATCH

Thanks in advance.




--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-schema-xml-query-analyser-tp4148317p4148327.html Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to