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 Anirudha Jadhav <an...@nyu.edu> on 2012/11/23 21:38:35 UTC
SPAN queries in solr
What is the best way to use span queries in solr ?
I see https://issues.apache.org/jira/browse/SOLR-839 which enables the XML
Query parser that supports span queries.
--
Anirudha P. Jadhav
Re: SPAN queries in solr
Posted by Anirudha Jadhav <an...@nyu.edu>.
thanks Erik. Nested Queries help.
I'll keep working on the XML Query parser on the side.
-Ani
On Sun, Nov 25, 2012 at 5:18 PM, Erik Hatcher <er...@gmail.com>wrote:
> _query_:
--
Anirudha P. Jadhav
Re: SPAN queries in solr
Posted by Erik Hatcher <er...@gmail.com>.
It'll be impossible to have one query parser that can do it all. Making it possible to combine queries parsed/interpreted in different ways is the way to go.
Please note that you can mix-and-match query parsers already. So if surround works for part of your query, but you also need ranges, consider using a "nested query":
q=_query_:"{!surround}surround expression" AND field:[from TO to]
or split the range off into an fq if that is more appropriate.
I agree that the XML Query Parser has some really nice potential, but as it is the patch there (that I contributed) is crude and not "Solrized" (not schema aware, etc), so it will be reworked before being something we'll commit to Solr proper.
Erik
On Nov 25, 2012, at 15:18 , Anirudha Jadhav wrote:
> played around with the surround query parser, while its good. Its not even
> near complete w.r.t supporting all different types of queries viz.
> rangeQueries etc. Let me know if i am missing something in understand the
> surround parser.
>
> The XML parser seems to be a better choice, I'll try applying it to 3.6 and
> 4.0. and implement all suggestions from solr-839.
>
>
>
>
> On Fri, Nov 23, 2012 at 6:14 PM, Anirudha Jadhav <an...@gmail.com>wrote:
>
>> Can this be made to work with solr 3.5 ?
>> i will give it a try.
>>
>> Thanks
>>
>> On Nov 23, 2012, at 17:28, simon <mt...@gmail.com> wrote:
>>
>>> take a look at SOLR-2703, which was committed for 4.0. It provides a Solr
>>> wrapper for the surround query parser, which supports span queries.
>>>
>>> On Fri, Nov 23, 2012 at 3:38 PM, Anirudha Jadhav <an...@nyu.edu>
>> wrote:
>>>
>>>> What is the best way to use span queries in solr ?
>>>>
>>>> I see https://issues.apache.org/jira/browse/SOLR-839 which enables the
>> XML
>>>> Query parser that supports span queries.
>>>>
>>>>
>>>>
>>>> --
>>>> Anirudha P. Jadhav
>>>>
>>
>
>
>
> --
> Anirudha P. Jadhav
Re: SPAN queries in solr
Posted by Anirudha Jadhav <an...@gmail.com>.
played around with the surround query parser, while its good. Its not even
near complete w.r.t supporting all different types of queries viz.
rangeQueries etc. Let me know if i am missing something in understand the
surround parser.
The XML parser seems to be a better choice, I'll try applying it to 3.6 and
4.0. and implement all suggestions from solr-839.
On Fri, Nov 23, 2012 at 6:14 PM, Anirudha Jadhav <an...@gmail.com>wrote:
> Can this be made to work with solr 3.5 ?
> i will give it a try.
>
> Thanks
>
> On Nov 23, 2012, at 17:28, simon <mt...@gmail.com> wrote:
>
> > take a look at SOLR-2703, which was committed for 4.0. It provides a Solr
> > wrapper for the surround query parser, which supports span queries.
> >
> > On Fri, Nov 23, 2012 at 3:38 PM, Anirudha Jadhav <an...@nyu.edu>
> wrote:
> >
> >> What is the best way to use span queries in solr ?
> >>
> >> I see https://issues.apache.org/jira/browse/SOLR-839 which enables the
> XML
> >> Query parser that supports span queries.
> >>
> >>
> >>
> >> --
> >> Anirudha P. Jadhav
> >>
>
--
Anirudha P. Jadhav
Re: SPAN queries in solr
Posted by Anirudha Jadhav <an...@gmail.com>.
Can this be made to work with solr 3.5 ?
i will give it a try.
Thanks
On Nov 23, 2012, at 17:28, simon <mt...@gmail.com> wrote:
> take a look at SOLR-2703, which was committed for 4.0. It provides a Solr
> wrapper for the surround query parser, which supports span queries.
>
> On Fri, Nov 23, 2012 at 3:38 PM, Anirudha Jadhav <an...@nyu.edu> wrote:
>
>> What is the best way to use span queries in solr ?
>>
>> I see https://issues.apache.org/jira/browse/SOLR-839 which enables the XML
>> Query parser that supports span queries.
>>
>>
>>
>> --
>> Anirudha P. Jadhav
>>
Re: SPAN queries in solr
Posted by simon <mt...@gmail.com>.
take a look at SOLR-2703, which was committed for 4.0. It provides a Solr
wrapper for the surround query parser, which supports span queries.
On Fri, Nov 23, 2012 at 3:38 PM, Anirudha Jadhav <an...@nyu.edu> wrote:
> What is the best way to use span queries in solr ?
>
> I see https://issues.apache.org/jira/browse/SOLR-839 which enables the XML
> Query parser that supports span queries.
>
>
>
> --
> Anirudha P. Jadhav
>