Re: Using mincount with date facet in Solr 1.4

2009-10-15 Thread Chris Hostetter

:   But I was getting facets even with count 0. So I tried following
: combinations of mincount parameters, as none was specified in the
: wiki,
: for date faceting.

mincount is not a date faceting option -- it only applies to field value 
faceting (ie: facet.field=foo) ... that's why it's in the "Field Value 
Faceting Parameters" section of the wiki page you listed, and not in the 
"Date Faceting Parameters" section.



-Hoss



Re: Using mincount with date facet in Solr 1.4

2009-10-13 Thread Lance Norskog
Deleting a document leaves behind the terms, which end up with a
0-length list of documents. Facets include these terms. After you
delete the documents, run an optimize and these "orphan" terms will
disappear.

That is why you find '1996:0' in your index. However, I don't know why
you would get a '0:0' if you never indexed year '0'. If this still
happens after you add an optimize pass, please raise an issue in JIRA.

On Tue, Oct 13, 2009 at 10:15 AM, rperkowska  wrote:
>
> Hi,
> in my  ATs I'm observing a similar thing happening from time to time - in a
> search that I perform I can see facet results that contain '0' both as keys
> and values. But there is no possibility that zeros are valid values. When I
> do a normal search, I don't see any indexed fields with zeros. What's more
> weird is that when I run my facet test (using JMeter) in isolation,
> everything works fine. It happens only when it's being run after other tests
> (and other indexing). On the other hand it shouldn't be the case that other
> indexing are influencing this test, as at the end of each test I'm deleting
> indexed documents so before running the facet test an index is empty.
>
> My facet test looks as follows:
> 1. Index group of documents
> 2. Perform search on facets
> 3. Remove documents from the index.
>
> The results that I'm getting for an integer field 'year':
>
> 1990:4
> 1995:4
> 0:0
> 1991:0
> 1992:0
> 1993:0
> 1994:0
> 1996:0
> 1997:0
> 1998:0
>
> I'm indexing only values 1990-1999, so there certainly shouldn't be any '0'
> as keys in the result set.
> I'm suing Solrj 1.3.
> Does it appear to be a Solr bug?
>
> Regards,
> Renata
>
>
> Aakash Dharmadhikari wrote:
>>
>> hi,
>>
>>   I am creating facets on a field of type
>>
>>   > multiValued="true"/>
>>
>>   The field can contain any number of dates even 0. I am making a facet
>> query on the field with following query parameters:
>>
>>   facet.date=daysForFilter
>>   facet.date.gap=%2B1DAY
>>   facet.date.end=2009-10-16T00:00:00Z
>>   facet=true
>>   facet.date.start=2009-10-11T00:00:00Z
>>
>>   But I was getting facets even with count 0. So I tried following
>> combinations of mincount parameters, as none was specified in the
>> wiki<http://wiki.apache.org/solr/SimpleFacetParameters>,
>> for date faceting.
>>
>>   f.daysForFilter.facet.mincount=1
>>   facet.mincount=1
>>   f.date.mincount=1
>>
>>   But none of these work. Could anyone please let me know how I can do
>> this?
>>
>> regards,
>> aakash
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/Using-mincount-with-date-facet-in-Solr-1.4-tp25840928p25877092.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>



-- 
Lance Norskog
goks...@gmail.com


Re: Using mincount with date facet in Solr 1.4

2009-10-13 Thread rperkowska

Hi, 
in my  ATs I'm observing a similar thing happening from time to time - in a
search that I perform I can see facet results that contain '0' both as keys
and values. But there is no possibility that zeros are valid values. When I
do a normal search, I don't see any indexed fields with zeros. What's more
weird is that when I run my facet test (using JMeter) in isolation,
everything works fine. It happens only when it's being run after other tests
(and other indexing). On the other hand it shouldn't be the case that other
indexing are influencing this test, as at the end of each test I'm deleting
indexed documents so before running the facet test an index is empty.

My facet test looks as follows:
1. Index group of documents
2. Perform search on facets
3. Remove documents from the index.

The results that I'm getting for an integer field 'year':

1990:4
1995:4
0:0
1991:0
1992:0
1993:0
1994:0
1996:0
1997:0
1998:0

I'm indexing only values 1990-1999, so there certainly shouldn't be any '0'
as keys in the result set.
I'm suing Solrj 1.3.
Does it appear to be a Solr bug?

Regards, 
Renata 


Aakash Dharmadhikari wrote:
> 
> hi,
> 
>   I am creating facets on a field of type
> 
>multiValued="true"/>
> 
>   The field can contain any number of dates even 0. I am making a facet
> query on the field with following query parameters:
> 
>   facet.date=daysForFilter
>   facet.date.gap=%2B1DAY
>   facet.date.end=2009-10-16T00:00:00Z
>   facet=true
>   facet.date.start=2009-10-11T00:00:00Z
> 
>   But I was getting facets even with count 0. So I tried following
> combinations of mincount parameters, as none was specified in the
> wiki<http://wiki.apache.org/solr/SimpleFacetParameters>,
> for date faceting.
> 
>   f.daysForFilter.facet.mincount=1
>   facet.mincount=1
>   f.date.mincount=1
> 
>   But none of these work. Could anyone please let me know how I can do
> this?
> 
> regards,
> aakash
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Using-mincount-with-date-facet-in-Solr-1.4-tp25840928p25877092.html
Sent from the Solr - User mailing list archive at Nabble.com.



Using mincount with date facet in Solr 1.4

2009-10-10 Thread Aakash Dharmadhikari
hi,

  I am creating facets on a field of type

  

  The field can contain any number of dates even 0. I am making a facet
query on the field with following query parameters:

  facet.date=daysForFilter
  facet.date.gap=%2B1DAY
  facet.date.end=2009-10-16T00:00:00Z
  facet=true
  facet.date.start=2009-10-11T00:00:00Z

  But I was getting facets even with count 0. So I tried following
combinations of mincount parameters, as none was specified in the
wiki,
for date faceting.

  f.daysForFilter.facet.mincount=1
  facet.mincount=1
  f.date.mincount=1

  But none of these work. Could anyone please let me know how I can do this?

regards,
aakash