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 heaven <ah...@gmail.com> on 2014/10/07 16:56:51 UTC
Re: Help with a slow filter query
The syntax for frange query parser is weird:
{!frange cache=false cost=200 l=2001-01-01T00:00:00Z
u=2013-12-01T23:59:59Z}nominated_at_d
or simply
{!frange cache=false cost=200 u=2013-12-01T23:59:59Z}nominated_at_d
And I don't see any docs in Solr wiki explaining this syntax, these examples
above I've found at third parties' blogs.
I would expect something like
{!frange cache=false cost=200}created_at_d:[* TO 2014-09-08T23:59:59Z]
but this fails with a syntax error. What is "I" and what is "U"?
I hardly imagine how this could be used in a real world application (e.g.
how to implement this syntax in Sunspot gem for Rails, etc). Is there a
wiki that explains frange parser in more details?
Thank you,
Alexander
--
View this message in context: http://lucene.472066.n3.nabble.com/Help-with-a-slow-filter-query-tp4158159p4163151.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Help with a slow filter query
Posted by Mikhail Khludnev <mk...@griddynamics.com>.
https://cwiki.apache.org/confluence/display/solr/Other+Parsers#OtherParsers-FunctionRangeQueryParser
http://lucene.apache.org/solr/4_10_0/solr-core/org/apache/solr/search/FunctionRangeQParserPlugin.html
re "this syntax"
https://cwiki.apache.org/confluence/display/solr/Local+Parameters+in+Queries
On Tue, Oct 7, 2014 at 6:56 PM, heaven <ah...@gmail.com> wrote:
> The syntax for frange query parser is weird:
> {!frange cache=false cost=200 l=2001-01-01T00:00:00Z
> u=2013-12-01T23:59:59Z}nominated_at_d
> or simply
> {!frange cache=false cost=200 u=2013-12-01T23:59:59Z}nominated_at_d
>
> And I don't see any docs in Solr wiki explaining this syntax, these
> examples
> above I've found at third parties' blogs.
>
> I would expect something like
> {!frange cache=false cost=200}created_at_d:[* TO 2014-09-08T23:59:59Z]
> but this fails with a syntax error. What is "I" and what is "U"?
>
> I hardly imagine how this could be used in a real world application (e.g.
> how to implement this syntax in Sunspot gem for Rails, etc). Is there a
> wiki that explains frange parser in more details?
>
> Thank you,
> Alexander
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Help-with-a-slow-filter-query-tp4158159p4163151.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
--
Sincerely yours
Mikhail Khludnev
Principal Engineer,
Grid Dynamics
<http://www.griddynamics.com>
<mk...@griddynamics.com>