I implemented Lucenet.NET on my site, using it to index my products, which are theater shows, tours and attractions around London.
I want to implement "Did you mean?" function when users skip product names that take into account all product names, not just single words. For instance,
If the user typed:
Lodnin Eye
I would like to auto-negotiate:
London London Eye
I assume that I do not want the analyzer to index the headers as if they were a single object, so that SpellChecker can come close to a phrase as well as individual words.
How should I do it?
autosuggest lucene.net.
, java- lucene shingle contrib, . , lucene.nets contrib , .
lucene, java, lucene.net, . :
lucene.net, .IndexDictionary, " " jake scotts. , , .
java, , , .
i dotnet, , . , , , , , , , lucene.net, .
, .suggests , .
:
SimpleLucene, lucene, .
This is probably not the best solution, and I would definitely use the answer suggested by the astronaut, but here is another possible solution. Use KeywordAnalyzer or KeywordTonenizer for each title, this does not break the title into separate tokens, but saves it as a single token. Using the SuggestSimilar method will return the entire title as a sentence.
Source: https://habr.com/ru/post/1751771/More articles:It is possible to combine the results of code coverage (VC ++) - c ++Delphi 6 command line compilation: no DCU - delphiJQuery Modal Overlay tools - broken in IE8 - jqueryReport Viewer - Object with Nested List Objects - vb.netLink to jQuery UI dialog instead of a button - jqueryPython Tips MIL-STD-1553 - pythonHow to handle application launch event in ASP.NET module - c #R: serialize base64 encode / decode text that doesn't exactly match - serializationR: Creating CSV from serialized objects - serializationGet request of type of general type in method - javaAll Articles