The usual approach is to use copyField to copy multiple fields to a
single field.
I posted a solution using an UpdateRequestProcessor to merge fields, but
with different analyzers, here:
https://blog.safaribooksonline.com/2014/04/15/search-suggestions-with-solr-2/
My latest approach is this:
https://github.com/safarijv/ifpress-solr-plugin/blob/master/src/main/java/com/ifactory/press/db/solr/spelling/suggest/MultiSuggester.java
which merges the fields while building the suggester index, allowing us
to provide different weights for suggestions from different fields.
-Mike
On 11/11/2014 06:59 AM, Thomas Michael Engelke wrote:
Like in this article
(http://www.andornot.com/blog/post/Advanced-autocomplete-with-Solr-Ngrams-and-Twitters-typeaheadjs.aspx),
I am using multiple fields to generate different options for an
autosuggest functionality:
- First, the whole field (top priority)
- Then, the whole field as EdgeNGrams from the left side (normal
priority)
- Lastly, single words or word parts (compound words) as EdgeNGrams
However, I was not very successful in supplying a single
requestHandler ("/suggest") with data from multiple suggesters. I have
also not been able to find any sample of how this might be done
correctly.
Is there a sample that I can read, or a documentation of how this
might be done? The referenced article was doing it, yet only
marginally described the technical implementation.