lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michal Fijolek <michalfijole...@gmail.com>
Subject Re: is there something like NumericalRangeField?
Date Wed, 23 Sep 2015 06:44:19 GMT
Thanks for replying.
I'm not sure if I can do something like this with TrieLongField.
My solr document:
{
  "myRange": "[10000000000 TO 20000000000]"
}

And then query it like this:
"myRange":10000000001

It would fail at importing the document, am I missing something?

MichaƂ

2015-09-23 3:25 GMT+02:00 Adam McElwee <adam@mcelwee.me>:

> It sounds like you want a TrieLongField, to me. Check it out in the field
> types here -
>
> https://cwiki.apache.org/confluence/display/solr/Field+Types+Included+with+Solr
>
> On Tue, Sep 22, 2015 at 6:31 PM, Michal Fijolek <michalfijolek91@gmail.com
> >
> wrote:
>
> > Hi,
> > I wanted to use something like DateRangeField, but only for numerical
> > ranges, not dates, so I'm looking something like NumericalRangeField.
> > I see that DateRangeField works with some numbers up to
> Integer.MAX_VALUE.
> > It's kind of hack, because parsing a year in a method
> > DateRangePrefixTree.parseCalendar(...) looks like this:
> > ```int year = Integer.parseInt(...)```,
> > but in my use-case I need ranges with values greater than
> > Integer.MAX_VALUE, so it does not work. Is there any clean way to do this
> > or maybe I should implement it myself?
> > Thanks
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message