Re: Using autocomplete with the new Suggest component

2011-04-15 Thread Quentin Proust
Hi Victor,

I have the same questions about the new Suggest component.
I can't really help you as I didn't really manage to understand how it
worked.
Sometimes, I had more results, sometimes less.

Even so, I would really be interested in your resources using Terms and
shingles to implement auto-complete.
I am myself a French student and it could help me improve the solution of
one of my project.

Best regards,
Quentin

2011/4/15 openvictor Open 

> Hi everybody,
>
>
> Recently I implemented an autocomplete mechanism for my website using a
> custom TermsComponent. I was quite happy with that because it also enables
> me to do a Google-like feature where complete sentences where suggested to
> the user when he typed in the search field. I used Shingles to search
> against pieces of sentences.
> (I have resources for French people if somebody asks)
>
> Then came solr 3.1 and its new suggest component. I have looked at the
> documentation but it's still unclear how it works exactly. So please let me
> ask some questions :
>
>
>   - Is there performance improvements over TermsComponent ?
>   - Is it able to autosuggest sentences and not only words ? If yes, how ?
>   Should I keep my shingles ?
>   - What is this "threshold" value that I see ? Is it a mandatory field to
>   complete ? I want to have suggestion no matter what the frequency is in
> the
>   document !
>
>
> Thank you all, if I succeed to do that I will try to provide a tutorial to
> do what with Jquery UI autocomplete + Suggest component if anyone's
> interested.
> Best regards.
>
> Victor
>



-- 

Quentin Proust
Email : q.pro...@gmail.com
Tel : 06.78.81.15.94
http://www.linkedin.com/in/quentinproust



Re: Autocomplete(terms) middle of words

2011-04-29 Thread Quentin Proust
You can do it without NGram with a query like this :

http://localhost:8983/solr/terms?terms=true&terms.fl=suggestionField&terms.regex=(.*)chest(.*)&terms.regex.flag=case_insensitive
In my case, I had to encode (.*) so replace it with %28.*%29 if needed.
It use a regex. I don't know if it has an impact on performance.
2011/4/29 lboutros 

> you could use EdgeNGramFilterFactory :
>
>
> http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.EdgeNGramFilterFactory
>
> And you should mix front and back ngram process in your analyzer :
>
>  maxGramSize="15"
> side="front"/>
>  maxGramSize="15"
> side="back"/>
>
> is it better ?
>
> Ludovic.
> -Jouve
> France.--
> View this message in context:
> http://lucene.472066.n3.nabble.com/Autocomplete-terms-middle-of-words-tp2878694p2878891.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>



-- 

Quentin Proust
Email : q.pro...@gmail.com
Tel : 06.78.81.15.94
http://www.linkedin.com/in/quentinproust



Re: Autocomplete(terms) middle of words

2011-04-29 Thread Quentin Proust
@roySolr : terms.regex exits from Solr 3.1. Doesn't seem compatible.

@ramires : Did you try with space in your regex. Something like
terms.regex=(.*) book (.*) <-- I put space before and after book. If it
doesn't work, try to replace space with %20. I didn't try so I don't know if
it work.

2011/4/29 roySolr 

> terms.regex doesn´t work for me. Prefix works fine. I use SOLR 1.4.. Is it
> compatible?--
> View this message in context:
> http://lucene.472066.n3.nabble.com/Autocomplete-terms-middle-of-words-tp2878694p2878948.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>



-- 
--------
Quentin Proust
Email : q.pro...@gmail.com
Tel : 06.78.81.15.94
http://www.linkedin.com/in/quentinproust