Solr Suggester Autocomplete Working Example

2015-02-02 Thread O. Olson
Hi,

I'm am wondering if anyone can point me to a website that user Solr's
Suggester or Autocomplete or whatever you call it. I am looking for
something that is closer to the default provided in the examples, but is
also used commercially. 

I have a local Solr installation that is on an intranet. (Sorry I cannot
post it here.)  Unfortunately, the suggestions it provides does not seem to
be OK. By this I mean in comparison to Google, which I know does not use
Solr. 

For example, when I type the string sto into my installation, I get the
suggested values like storag - which is not a complete word i.e. it misses
the 'e' in the end. On the other hand when I use Google, I get complete
words like stock market or stopwatch etc.

I know Google does not use Solr. I also know that I do not have the
capability to do a lot of customizations to Solr that are much beyond the
defaults and changing a few settings. Hence I am curious if there is a
website out there that uses Suggester or Autocomplete where I can compare
the capabilities with my own. 

Thank you




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-Suggester-Autocomplete-Working-Example-tp4183493.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Solr Suggester Autocomplete Working Example

2015-02-02 Thread Michael Sokolov
Please go ahead and play with autocomplete on safaribooksonline.com/home 
- if you are not a subscriber you will have to sign up for a free 
trial.  We use the AnalyzingInfixSuggester.  From your description, it 
sounds as if you are building completions from a field that you also use 
for searching -- maybe it is stemmed, and that's why you are seeing the 
weird partial words.  To get good results from the suggester you will 
probably need to set up a special field to use as a source of 
suggestions that uses appropriate text analysis.


-Mike

On 2/2/2015 11:26 AM, O. Olson wrote:

Hi,

I'm am wondering if anyone can point me to a website that user Solr's
Suggester or Autocomplete or whatever you call it. I am looking for
something that is closer to the default provided in the examples, but is
also used commercially.

I have a local Solr installation that is on an intranet. (Sorry I cannot
post it here.)  Unfortunately, the suggestions it provides does not seem to
be OK. By this I mean in comparison to Google, which I know does not use
Solr.

For example, when I type the string sto into my installation, I get the
suggested values like storag - which is not a complete word i.e. it misses
the 'e' in the end. On the other hand when I use Google, I get complete
words like stock market or stopwatch etc.

I know Google does not use Solr. I also know that I do not have the
capability to do a lot of customizations to Solr that are much beyond the
defaults and changing a few settings. Hence I am curious if there is a
website out there that uses Suggester or Autocomplete where I can compare
the capabilities with my own.

Thank you




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-Suggester-Autocomplete-Working-Example-tp4183493.html
Sent from the Solr - User mailing list archive at Nabble.com.




Re: Solr Suggester Autocomplete Working Example

2015-02-02 Thread Alexandre Rafalovitch
On 2 February 2015 at 11:26, O. Olson olson_...@yahoo.it wrote:
 I also know that I do not have the
 capability to do a lot of customizations to Solr that are much beyond the
 defaults and changing a few settings.

Actually, you have a capability to do unbelievable level of
customization in Solr, starting from schema definition and down to
writing custom components in Java. Or even completely rebuilding Solr
the way you want from sources. Or was that a reference to your current
skills rather than than Solr's? I think that should be fixable as
well. Just keep learning and asking questions. We'll try to help.

As to the suggester, it may make sense to explain what kind of text
you are providing and what results you might be expecting. A bit more
details that you've given already. There are several different
implementations, each with its own trade-offs.

Regards,
   Alex.


Sign up for my Solr resources newsletter at http://www.solr-start.com/


Re: Solr Suggester Autocomplete Working Example

2015-02-02 Thread O. Olson
Thank you Michael. I will look at safaribooksonline.com later today when I
create my account. 

I am not sure how to use AnalyzingInfixSuggester. I googled a bit, and I can
find the source code, but not how to use it. 

You are perfectly correct when you say that I am using a field also used for
searching and which has been stemmed. I need to look into setting up another
field for the suggester. I will post here when I have questions about this.

Thanks again.



Michael Sokolov-3 wrote
 Please go ahead and play with autocomplete on safaribooksonline.com/home 
 - if you are not a subscriber you will have to sign up for a free 
 trial.  We use the AnalyzingInfixSuggester.  From your description, it 
 sounds as if you are building completions from a field that you also use 
 for searching -- maybe it is stemmed, and that's why you are seeing the 
 weird partial words.  To get good results from the suggester you will 
 probably need to set up a special field to use as a source of 
 suggestions that uses appropriate text analysis.
 
 -Mike





--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-Suggester-Autocomplete-Working-Example-tp4183493p4183530.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Solr Suggester Autocomplete Working Example

2015-02-02 Thread O. Olson
Alexandre Rafalovitch wrote
 Actually, you have a capability to do unbelievable level of
 customization in Solr, starting from schema definition and down to
 writing custom components in Java. Or even completely rebuilding Solr
 the way you want from sources. Or was that a reference to your current
 skills rather than than Solr's? I think that should be fixable as
 well. Just keep learning and asking questions. We'll try to help.
 
 As to the suggester, it may make sense to explain what kind of text
 you are providing and what results you might be expecting. A bit more
 details that you've given already. There are several different
 implementations, each with its own trade-offs.
 
 Regards,
Alex.

Sorry Alex, I am just a bit dumb. That reference was regarding my skills not
Solr's. I think Michael pointed out one of my problems i.e. I was using the
Search field that had been stemmed. I will look at creating an alternate
field just for the suggester. Thank you.




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-Suggester-Autocomplete-Working-Example-tp4183493p4183532.html
Sent from the Solr - User mailing list archive at Nabble.com.