lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alessandro Benedetti <abenede...@apache.org>
Subject Re: AnalyzingInfixLookupFactory, Edgengramm with multiple terms
Date Mon, 23 Nov 2015 09:56:03 GMT
Hi Roland,
<allTermsRequired> is a boolean parameter already supported by the
AnalyzingInfixLookup strategy.
At a Lucene level is parameter for the Lookup method.
At a Solr level is exposed through the configuration :

*suggest.allTermsRequired*

Anyway the default configuration is *True*, so it is weird you get that
behaviour.
Hope this helps.

Cheers

On 20 November 2015 at 14:26, Szűcs Roland <szucs.roland@bookandwalk.hu>
wrote:

> Hi all,
>
> I have a working suggester compnenet and requesthandler in my Solr 5.2.1
> instance. It is working as I expected but I need a solution which handles
> multiple query terms "correctly".
>
> I have string field title. Let's see the following case:
> title 1: Green Apple Color
> title 2: Apple the master of innovation
> title 3: Apple the master of presentation.
> Using Edgengramm minsize3 for the copy of the string title field I get the
> following:
> suggest.q=''Appl", all documents are matched , fine.
>
> suggest.q=''Apple inno", all documents are matched, wrong as the user
> expectation is to have only title 2 matched
>
> Is there any way to make the suggester component smarter to handle multi
> term queries as user expect. AnalyzingInfixLookupFactory was a great
> improvement to handle terms not only from the beginning of the expressions
> but from the middle or the end.
>
> I think if we can apply "AND" relationship among the multi-terms query
> match like in case of normal queries it can help.
>
> Any idea is appreciated
> --
> <https://www.linkedin.com/pub/roland-sz%C5%B1cs/28/226/24/hu>Szűcs Roland
> <https://www.linkedin.com/pub/roland-sz%C5%B1cs/28/226/24/hu>Ismerkedjünk
> meg a Linkedin <
> https://www.linkedin.com/pub/roland-sz%C5%B1cs/28/226/24/hu>
> -en <https://bookandwalk.hu/>ÜgyvezetőTelefon: +36 1 210 81
> 13Bookandwalk.hu
> <https://bokandwalk.hu/>
>



-- 
--------------------------

Benedetti Alessandro
Visiting card : http://about.me/alessandro_benedetti

"Tyger, tyger burning bright
In the forests of the night,
What immortal hand or eye
Could frame thy fearful symmetry?"

William Blake - Songs of Experience -1794 England

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