Re: Autocomplete terms from the middle of name/description of a Doc

2012-07-28 Thread Rajani Maski
Hi, One approach for this can be to get fact.prefix results for prefix based suggests and for suggesting names from middle of doc what you can do is index that name field with white space and edge ngram filter; search on that field with prefix key word and fl=title only.. Then concatenate both

Re: Autocomplete terms from the middle of name/description of a Doc

2012-07-25 Thread Chantal Ackermann
> Suppose I have a product with a title='kMix Espresso maker'. If I tokenize > this and put the result in product_tokens I should get > '[kMix][Espresso][maker]'. > > If now I try to search with facet.field='product_tokens' and > facet.prefix='espresso' I should get only 'espresso' while I want '

Re: Autocomplete terms from the middle of name/description of a Doc

2012-07-25 Thread Ugo Matrangolo
Hi, thank you for the suggestions. However, I think that this is not going to work. Suppose I have a product with a title='kMix Espresso maker'. If I tokenize this and put the result in product_tokens I should get '[kMix][Espresso][maker]'. If now I try to search with facet.field='product_tokens

Re: Autocomplete terms from the middle of name/description of a Doc

2012-07-25 Thread Chantal Ackermann
Hi Ugo, You can use facet.prefix on a tokenized field instead of a String field. Example: facet.prefix on "product" will only return hits that match the start of the single token stored in that field. As "product_tokens" contains the value of "product" tokenized in a fashion that suites you,

Autocomplete terms from the middle of name/description of a Doc

2012-07-25 Thread Ugo Matrangolo
Hi, I'm working on making our autocomplete engine a bit more smart. The actual impl is a basic facet based autocompletion as described in the 'SOLR 3 Enterprise Search' book: we use all the typed tokens except the last one to build a facet.prefix query on an autocomplete facet field we built at i