Autocomplete in solr with popularity -


I am now using solr autocomplete and search function, I have searched the popularity of the words searched in the ranking of automatic suggestions I want to use.

For example, if 'usb' was searched 10 times in the last week, and 'user' was searched 100 times last week, while typing 'us', the user was ranked higher than USB needed.

Is there a way to fulfill this requirement? Thank you

In short, you need to use the index to promote the value of a 'search queries' Need index '- and refresh it from time to time.

You have an index of all searched queries. That index can be created with index time boost for each dock, as the function of the function that was searched for. Boost factor can be searched for only a bar.

Example search queries - 'Foo', 'Foo', 'Bar', 'Bar', 'Bar', 'ABCD' will be added to 'Foo' in a new index, in which 2 Will increase, with 3 'times' with ABCD.

You can start with this dynamic search (: ) - and by adding the letters typed in the query. Document score index promotes time

Example : will bring back the docs first with the highest score. After the user 'f' - the word 'f *' returns 'afu' above other people because its high index increases in time.

I do not know that 'Rule component' behaves here. Its scores are based on frequency - not on the basis of index time promotions.

As you submit more search requests, you will need to re-index with the updated boost values ​​that the new search counts.

For example. If there is a new search for 'bar' - then you re-index 'bar' document with an increase of 4.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -