![]() Do you want to make auto-suggestions based on multivalued fields? Multivalued fields are for example commonly used for tags, since every document can have more than one tag and do you want to suggest a tag while the user is typing it. ![]() How do you want to sort the auto-suggestions? It’s important to show on top the best suggestion, and each solution you are going to explore has a different sorting option.Unfortunately some of the solutions we have available don’t support any filter. Every search should match with that specific context, so it is common practice to have the auto-suggestions reflect the user filters. Do you want to filter the suggestions based on the actual search? The user could have previously selected a facet entry, filtering his results to a specific subset.Do you want to make single term or multiple term suggestions? You should basically decide if you want to suggest single words which can complete the word the user has partially written, or even complete sentences.If you can’t upgrade you’ll probably have less options to choose from, unless you’re willing to manually apply some patches. Which Solr version are you working with? If we’re working with an old version (1.x for example) it is worth an upgrade.In order to make the right choice you should first of all ask yourself some questions: What actually matters is that we are going to make suggestions based on what’s inside the index for this purpose it’s not relevant if the index contains user queries or “normal data”, the solutions we are going to consider can be applied in both cases. On the other hand, it is recommended to provide query suggestions we can for example capture and index on a specific solr core all the user queries which return more than zero results, so we can use those information to make auto-suggestions as well. In fact a user is usually looking for something that can be found within the index, that’s why we’d like to show the words that are similar to the current query and at the same time relevant within the index. ![]() It’s common practice to make auto-suggestions based on the indexed data. The goal of this post is compare the available options in order to identify the best solution tailored to your needs, rather than describe any one specific approach in depth. You can find many articles and examples on the internet, but making the right choice is not always easy. There are different ways to make auto complete suggestions with Solr. Figure 1: The way Google makes auto complete suggestions: multi-term query suggestions and spelling correction
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |