Erick,
I understand what you explaining to me. Let em point out few stuffs that i
face W.R.T my field type that i mentioned in my first mail.

1. If the user explicityly gives double quotes, we search for exact phrases
in exact order.
2. If they don't, its understood that they would just want those wants to
be found in any other but include both the words. If i give the phrase as
such without qiotes, my parser returns results even if one word is found,
So i introduce boolean 'AND' clause to seperate them.
3. And now i face this problem in multivalued fields.

I understand i cannot nake use of positionIncrementGap now. But is can u
tell me some alternative?
All i can think of is 'JOINS' now. Whcih works pretty well. But is that a
good approach?

Thanks.
On Mon, Feb 10, 2014 at 8:15 AM, Erick Erickson <erickerick...@gmail.com>wrote:

> OK, nothing in that parsed query will respect positionIncrementGap. That is
> only
> relevant for _phrase_ queries and has no relevance to regular Boolean
> queries.
>
> Using positionIncrementGap to keep matches from occurring across the gaps
> in
> multiValued field requires phrases and slop. I.e. lets say your gap is 100.
> Let's
> say you've indexed the following two values
>
> Erick Erickson
> Kashish Solruser
>
> Searching as you are for just +Erick +Kashish in the same field is only
> asking
> whether the terms appear anywhere and you'll get a match. Searching for
> "Erick Kashish" (with quotes) will fail because the positions are roughly 1
> and 103.
> Likewise, searching "Erick Kashish"~100 will fail.
>
> Searching for "Erick Kashish"~110 will succeed because those two terms are
> less than 110 positions apart.
>
> So I really think you're misunderstanding the use of positionIncrementGap.
> What,
> from a high level, are you trying to accomplish?
>
> Best,
> Erick
>
>
> On Sun, Feb 9, 2014 at 7:19 PM, Kashish <nirali...@gmail.com> wrote:
>
> > Hi Erik,
> > Thanks for your reply.
> >
> > I am not using exact phrases here as i need to incorporate various forms
> of
> > searches. So i seperate the user input by 'AND clauses if the user
> > exclusively doesn't ask for exact match.
> >
> > I use the query as
> >
> >
> http://localhost:8983/solr/all/select?q=%28akaName:%28a%29%20AND%20akaName:%28team%29%29&debug=true
> >  and my debug gives me
> > <str name="rawquerystring">(akaName:(a) AND akaName:(team))</str><str
> > name="querystring">(akaName:(a) AND akaName:(team))</str><str
> > name="parsedquery">(+(+akaName:a +akaName:team))/no_coord</str><str
> > name="parsedquery_toString">+(+akaName:a +akaName:team)</str>
> >
> > Is there any other better approach you suggest to me in this case?
> >
> >
> >
> >
> > --
> > View this message in context:
> >
> http://lucene.472066.n3.nabble.com/positionIncrementGap-in-schema-xml-Doesn-t-seem-to-work-tp4116405p4116408.html
>  > Sent from the Solr - User mailing list archive at Nabble.com.
> >
>

Reply via email to