You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Sujatha Arun <su...@gmail.com> on 2012/10/28 09:00:02 UTC

Search Suggest for full content with Filter option

Hello,

I want  suggestions for full content of several books with a filter
that restricts suggestions to a single book .However the best options of
 suggester and terms component  do not support filter.

That leaves the facets and  ngram Indexing.I indexed entire content by
splitting on white space as the suggestions should work for any words in
the index, But I find this query

<url>/select?q=tes&facets=true&facet.field=ph_su&facet.prefix=tes&facet.limit=5
extremely time consuming .This could be because of the number of unique
terms in the full Index.

For an ngram Indexing ,If were to Index the entire content as tokenized
into a field and store the same  ,for any token for the document ,I would
get the entire stored content as suggestion .How can I get the only the
correct keyword as suggestion using an non-suggester based n gram Indexing
such that it can be filtered?


Regards
Sujatha

Re: Search Suggest for full content with Filter option

Posted by Sujatha Arun <su...@gmail.com>.
Any Suggestions on this?



On Sun, Oct 28, 2012 at 1:30 PM, Sujatha Arun <su...@gmail.com> wrote:

> Hello,
>
> I want  suggestions for full content of several books with a filter
> that restricts suggestions to a single book .However the best options of
>  suggester and terms component  do not support filter.
>
> That leaves the facets and  ngram Indexing.I indexed entire content by
> splitting on white space as the suggestions should work for any words in
> the index, But I find this query
>
> <url>/select?q=tes&facets=true&facet.field=ph_su&facet.prefix=tes&facet.limit=5
> extremely time consuming .This could be because of the number of unique
> terms in the full Index.
>
> For an ngram Indexing ,If were to Index the entire content as tokenized
> into a field and store the same  ,for any token for the document ,I would
> get the entire stored content as suggestion .How can I get the only the
> correct keyword as suggestion using an non-suggester based n gram Indexing
> such that it can be filtered?
>
>
> Regards
> Sujatha
>