lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hoss Man (JIRA)" <j...@apache.org>
Subject [jira] Updated: (SOLR-1240) Numerical Range faceting
Date Tue, 19 Oct 2010 21:59:26 GMT

     [ https://issues.apache.org/jira/browse/SOLR-1240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Hoss Man updated SOLR-1240:
---------------------------

    Attachment: SOLR-1240.use-nl.patch

one line patch to make the "counts" section for each field use a NamedList instead of aSimpleOrderedMap.
 This means that the "fields" and "metadata" (gap, start, between, after, etc...) structures
are still maps with simple key lookups, but when you start looking at the individual rnages
and counts they are controlled by json.nl.

Same example as before, with "wt=json&json.nl=arrarr"

{code}
{
  "responseHeader":{
    "status":0,
    "QTime":6},
  "response":{"numFound":20,"start":0,"docs":[]
  },
  "facet_counts":{
    "facet_queries":{},
    "facet_fields":{},
    "facet_dates":{
      "manufacturedate_dt":{
        "2005-01-01T00:00:00Z":2,
        "2006-01-01T00:00:00Z":9,
        "2007-01-01T00:00:00Z":0,
        "2008-01-01T00:00:00Z":0,
        "2009-01-01T00:00:00Z":0,
        "2010-01-01T00:00:00Z":0,
        "gap":"+1YEAR",
        "start":"2005-01-01T00:00:00Z",
        "end":"2011-01-01T00:00:00Z"}},
    "facet_ranges":{
      "price":{
        "counts":
        [
          ["-2.3",2],
          ["11.4432",2],
          ["25.186401",0],
          ["38.929604",0],
          ["52.672806",0],
          ["66.41601",2],
          ["80.15921",1],
          ["93.90241",0],
          ["107.645615",0],
          ["121.38882",0],
          ["135.13202",0]],
        "gap":13.7432,
        "start":-2.3,
        "end":148.87521,
        "before":0,
        "after":10,
        "between":7},
      "manufacturedate_dt":{
        "counts":
        [
          ["2005-01-01T00:00:00Z",2],
          ["2006-01-01T00:00:00Z",9],
          ["2007-01-01T00:00:00Z",0],
          ["2008-01-01T00:00:00Z",0],
          ["2009-01-01T00:00:00Z",0],
          ["2010-01-01T00:00:00Z",0]],
        "gap":"+1YEAR",
        "start":"2005-01-01T00:00:00Z",
        "end":"2011-01-01T00:00:00Z",
        "before":0,
        "after":0,
        "between":11},
      "popularity":{
        "counts":
        [
          ["-2",3],
          ["1",2],
          ["4",13],
          ["7",7],
          ["10",2]],
        "gap":3,
        "start":-2,
        "end":13,
        "before":0,
        "after":0,
        "between":18}}}}
{code}

> Numerical Range faceting
> ------------------------
>
>                 Key: SOLR-1240
>                 URL: https://issues.apache.org/jira/browse/SOLR-1240
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>            Reporter: Gijs Kunze
>            Assignee: Hoss Man
>            Priority: Minor
>             Fix For: 3.1, 4.0
>
>         Attachments: SOLR-1240.patch, SOLR-1240.patch, SOLR-1240.patch, SOLR-1240.patch,
SOLR-1240.patch, SOLR-1240.patch, SOLR-1240.patch, SOLR-1240.patch, SOLR-1240.patch, SOLR-1240.use-nl.patch
>
>
> For faceting numerical ranges using many facet.query query arguments leads to unmanageably
large queries as the fields you facet over increase. Adding the same faceting parameter for
numbers which already exists for dates should fix this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message