Hi,

I'm looking for a solution related to auto complete feature for one 
application.

Below is a list of texts from which auto complete results would be 
populated.

Lorem ipsum dolor sit amet
tincidunt ut laoreet
dolore eu feugiat nulla facilisis at vero eros et
te feugait nulla facilisi
Claritas est etiam processus
anteposuerit litterarum formas humanitatis
fiant sollemnes in futurum
Hieyed ddi lorem ipsum dolor
test lorem ipsume
test xyz lorem ipslili

Consider below table. First column describes user entered value and 
second column describes expected result (list of auto complete terms 
that should be populated from Solr)

lorem
        *Lorem* ipsum dolor sit amet
Hieyed ddi *lorem* ipsum dolor
test *lorem *ipsume
test xyz *lorem *ipslili
lorem ip
        *Lorem ip*sum dolor sit amet
Hieyed ddi *lorem ip*sum dolor
test *lorem ip*sume
test xyz *lorem ip*slili
lorem ipsl
        test xyz *lorem ipsl*ili



Can anyone share ideas of how this can be achieved with Solr? Already 
tried with various tokenizers and filter factories like, 
WhiteSpaceTokenizer, KeywordTokenizer, EdgeNGramFilterFactory, 
ShingleFilterFactory etc. but no luck so far..

Note that, It would be excellent if terms populated from Solr can be 
highlighted by using Highlighting or any other component/mechanism of Solr.

*Note :* Standard autocomplete (like, 
facet.field=AutoComplete&f.AutoComplete.facet.prefix=<user entered 
term>&f.AutoComplete.facet.limit=10&facet.sort&rows=0) are already 
working fine with the application. but, nowadays, looking for enhancing 
the existing auto complete stuff with the above requirement.

Any thoughts?

Thanks in advance




The contents of this eMail including the contents of attachment(s) are 
privileged and confidential material of Gateway NINtec Pvt. Ltd. (GNPL) and 
should not be disclosed to, used by or copied in any manner by anyone other 
than the intended addressee(s). If this eMail has been received by error, 
please advise the sender immediately and delete it from your system. The views 
expressed in this eMail message are those of the individual sender, except 
where the sender expressly, and with authority, states them to be the views of 
GNPL. Any unauthorized review, use, disclosure, dissemination, forwarding, 
printing or copying of this eMail or any action taken in reliance on this eMail 
is strictly prohibited and may be unlawful. This eMail may contain viruses. 
GNPL has taken every reasonable precaution to minimize this risk, but is not 
liable for any damage you may sustain as a result of any virus in this eMail. 
You should carry out your own virus checks before opening the eMail or 
attachment(s). GNPL is neither liable for the proper and complete transmission 
of the information contained in this communication nor for any delay in its 
receipt. GNPL reserves the right to monitor and review the content of all 
messages sent to or from this eMail address and may be stored on the GNPL eMail 
system. In case this eMail has reached you in error, and you  would no longer 
like to receive eMails from us, then please send an eMail to 
d...@gatewaynintec.com

Reply via email to