lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aman Deep Singh <>
Subject Re: Give boost only if entire value is present in Query
Date Tue, 20 Jun 2017 02:22:02 GMT
Sorry Rick,
I didn't get it.
How will you give boost on other field when querying on some other field.
Or if you query on copy keyword tokenized field then it only matched when
entire query is matched.

On 20-Jun-2017 1:52 AM, "Rick Leir" <> wrote:

Use a copyfield so you can have a second field that uses a different
analysis chain. In the new field you just created for the copyfield, use
the lowercase type, or create a type using KeywordTokenizer in the analysis
chain. Then match on the original field, and boost based on the new field.

On June 19, 2017 11:01:49 AM EDT, Aman Deep Singh <>
>Yes alessandro,
>I know  that their us some downsight of using sow =false but if don't
>it then neither shingle nor bhram will work ,and these are required in
>On 19-Jun-2017 8:18 PM, "alessandro.benedetti" <>
>Isn't this a case where you don't want the query parser to split by
>before the analyser ?
>Take a look to the "sow" param for the edismax query parser.
>In your case you should be ok but Be aware that is not a silver bullet
>everything and that other problems could arise in similar scenarios
>The *sow* Parameter
>Split on whitespace: if set to false, whitespace-separated term
>will be provided to text analysis in one shot, enabling proper function
>analysis filters that operate over term sequences, e.g. multi-word
>and shingles. Defaults to true: text analysis is invoked separately for
>individual whitespace-separated term.
>Alessandro Benedetti
>Search Consultant, R&D Software Engineer, Director
>Sease Ltd. -
>View this message in context: http://lucene.472066.n3.
>Sent from the Solr - User mailing list archive at

Sorry for being brief. Alternate email is rickleir at yahoo dot com

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message