Set minGramSize="1" for EdgeNGramFilterFactory.

And use EdgeNGramFilterFactory in the "index" analyzer only, NOT in the "query" analyzer.

Check the "query" analyzer output in Solr admin as well.

-- Jack Krupansky

-----Original Message----- From: Ramo Karahasan
Sent: Thursday, September 13, 2012 6:00 PM
To: solr-user@lucene.apache.org
Subject: AW: Getting more proper results

If i choose "title" and search for "iphone 3" in the /admin/analysis.jsp

I get the following results for search "iphone 3"

Index Analyzer
iphone 3
ip iph ipho iphon iphone
ip iph ipho iphon iphone

if I search for "iphone 3g" I get

Index Analyzer
iphone 3g
ip iph ipho iphon iphone 3g
ip iph ipho iphon iphone 3g


So how can I configure solr so that iphone 3 is matched?

Any ideas?


Thanks,
Ramo

-----Ursprüngliche Nachricht-----
Von: Michael Della Bitta [mailto:michael.della.bi...@appinions.com]
Gesendet: Donnerstag, 13. September 2012 23:48
An: solr-user@lucene.apache.org
Betreff: Re: Getting more proper results

Ramo,

You can see how your content gets analyzed for your particular schema/field
on the Analysis page:

${path to your core}/admin/analysis.jsp

Michael Della Bitta

------------------------------------------------
Appinions | 18 East 41st St., Suite 1806 | New York, NY 10017
www.appinions.com Where Influence Isn’t a Game


On Thu, Sep 13, 2012 at 5:39 PM, Ramo Karahasan
<ramo.karaha...@googlemail.com> wrote:
How can i check this?
Am 13.09.2012 21:48 schrieb "Otis Gospodnetic"
<otis.gospodne...@gmail.com>:

Check if 3 is being removed because it's a stop word.

Otis
--
Search Analytics - http://sematext.com/search-analytics/index.html
Performance Monitoring - http://sematext.com/spm/index.html


On Thu, Sep 13, 2012 at 11:22 AM, Ramo Karahasan
<ramo.karaha...@googlemail.com> wrote:
> Hi,
>
> i can't figure it out why I'm getting the "wrong" resulst when
> searching
for
> "iphone 3"  even if the 3 is not in the titel of the books that are
> suggested.
>
> Can I specifiy the search somehow?
>
> The AND or OR operator didn't show any differences in the resultset.
>
>
> Thanks,
> Ramo
>
> -----Ursprüngliche Nachricht-----
> Von: Ahmet Arslan [mailto:iori...@yahoo.com]
> Gesendet: Mittwoch, 12. September 2012 00:34
> An: solr-user@lucene.apache.org
> Betreff: Re: Getting more proper results
>
>> I'm using it that way, because I want to have an autocompletion list.
>> Now I'm wondering if I can influence some of the results I'm getting.
>> I have a lot of categories in my database. If I for example search
>> for "iphone 3" I would expect to get all iphone 3 from the
>> category electronic. If I'm searching for "iphone 3" I get the
>> following results "iPhone - the book" , "Apple iphone 4", "My iphone &
I" , etc.
>
> You can try to set your default operator to and. &q.op=AND
>
> If you are not firing a phrase query (with quotes), you can do that
too.
> &q="iphone 3"
>


Reply via email to