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 AlexR <al...@hotmail.com> on 2012/03/01 17:38:42 UTC

alphanumeric buckets

Hi

i need to build buckets with alphanumeric values.

for example:

facet.field=person
person: Alex(10), Ben(5), George(8), Paul(3), Peter(2), Stefan(9)

now i need all person in the interval of A-C

with facet.query=person[A TO C] i only get the number of matches (15)
but i wanna have the values (Alex, Ben).

is there any way to arrange that?

kind regards alex

--
View this message in context: http://lucene.472066.n3.nabble.com/alphanumeric-buckets-tp3790990p3790990.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: alphanumeric buckets

Posted by AlexR <al...@hotmail.com>.
oh no sorry.

i need more than one. it was only an example.

0 - 9
A - F
G - I
M -R
S -Z

it will be so easy when i would get all person in this interval with
fq=person:[A TO F]. not only matches of entries

thx
alex

--
View this message in context: http://lucene.472066.n3.nabble.com/alphanumeric-buckets-tp3790990p3792803.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: alphanumeric buckets

Posted by Emmanuel Espina <es...@gmail.com>.
Only one interval? in that case you could add a filter query and facet
in the regular way. That is:

facet.field=person&fq=person:[A TO C]

But consider that you will get the search results that include those
persons only.

Thanks
Emmanuel


2012/3/1 AlexR <al...@hotmail.com>:
> Hi
>
> i need to build buckets with alphanumeric values.
>
> for example:
>
> facet.field=person
> person: Alex(10), Ben(5), George(8), Paul(3), Peter(2), Stefan(9)
>
> now i need all person in the interval of A-C
>
> with facet.query=person[A TO C] i only get the number of matches (15)
> but i wanna have the values (Alex, Ben).
>
> is there any way to arrange that?
>
> kind regards alex
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/alphanumeric-buckets-tp3790990p3790990.html
> Sent from the Solr - User mailing list archive at Nabble.com.