This is the dev list - ask your usage question on the user list (Solr or
Lucene.)

-- Jack Krupansky

On Mon, Mar 7, 2016 at 7:09 AM, Kamaldeep Singh <mailkamald...@gmail.com>
wrote:

> Hi,
>
> I  have come across an actual use case where I need to do an exact match
> for a term which is indexed as TextField using StandardAnalyzer ie value of
> term "abc" should match to only "abc" and not "abc xyz" .
>
> I understand I can use different analyzer like KeywordAnalyzer and avoid
> converting string to tokens but that is not acceptable since we need to run
> phrase queries with a slop and we can't change analyzer for a single field.
>
> One option is definitely storing a copy of that field as StringField and
> in case we want exact matches we could just query that stringfield using
> TermQuery but is there another approach ?
>
> Can we consider adding this to lucene if this is not currently supported ?
>
> Regards,
> Kamal
>

Reply via email to