The significantTerms streaming expression could be useful as a
co-occurrence based suggester. This coming in Solr 6.5 but could be easily
backported to earlier releases. This blog describes how it works:

http://joelsolr.blogspot.com/2017/02/anomaly-detection-in-solr-65.html

Joel Bernstein
http://joelsolr.blogspot.com/

On Sun, Mar 5, 2017 at 3:43 PM, Georg Sorst <georg.so...@gmail.com> wrote:

> Hi all,
>
> is there a way to get the suggester to autocomplete words and suggest
> co-occurences instead of suggesting complete field values? The behavior I'm
> looking for is quite similar to Google, only based on index values not
> actual queries.
>
> Let's say there are two items in the index:
>
>    1. "Adidas running shoe"
>    2. "Nike running shoe"
>
> Now when the user types in "running sh" the suggestions should be something
> like:
>
>    - "running shoe" (completion)
>    - "running shoe adidas" (completion + co-ocurrence)
>    - "running shoe nike" (completion + co-ocurrence)
>
> I've actually got this running already through some abomination that abuses
> the facets built on the title field. This works surprisingly well, but I
> can't find a way to make this error-tolerant ("runing sh" with a single "n"
> should provide the same suggestions).
>
> So, any ideas on how to get the suggester do this in a error-tolerant way?
>
> Thanks and all the best,
> Georg
>

Reply via email to