Re: Facet count mismatch between solr simple facet and Json facet API.

2015-11-29 Thread rks_lucene
I am facing the same issue. Thanks for letting me know about the JIRA.

I think this is a very big issue especially for those looking at Solr as a
NoSQL analytics engine.

Ritesh



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Facet-count-mismatch-between-solr-simple-facet-and-Json-facet-API-tp4242461p4242650.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Facet count mismatch between solr simple facet and Json facet API.

2015-11-29 Thread Vishnu Mishra
Yes we are using distributed search using shard approach. 



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Facet-count-mismatch-between-solr-simple-facet-and-Json-facet-API-tp4242461p4242646.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Facet count mismatch between solr simple facet and Json facet API.

2015-11-27 Thread Yonik Seeley
Are you using SolrCloud / distributed search?

https://issues.apache.org/jira/browse/SOLR-7452

-Yonik


On Fri, Nov 27, 2015 at 10:11 AM, Vishnu Mishra  wrote:
> Hi
>
> I am using solr 5.3.1 in my application. I have indexed field named given
> below :
>
>  multiValued="true" docValues="true" />
>
> And then using solr json facet API for faceting. But it seems that json
> facet API produce less and incorrect result counts than simple solr facet.
> The json facet request which I am doing is as below:
>
> json.facet={
> TitleFacet: {
> type: terms,
> field: Title,
> offset: 0,
> limit: 100,
> mincount: 1,
> sort: {
> count: desc
> }
> }
> }
>
> gives for example 63 count. And then equivalent simple facet query given
> below
>
> facet=true=Title=100=1=0
>
> gives 65 count.
>
>
> Is there any issue with Solr Json facet or am I doing anything wrong. Can
> anybody help me.
>
>
>
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Facet-count-mismatch-between-solr-simple-facet-and-Json-facet-API-tp4242461.html
> Sent from the Solr - User mailing list archive at Nabble.com.


Re: Facet count mismatch between solr simple facet and Json facet API.

2015-11-27 Thread Mikhail Khludnev
did you try to find two absent values? what is you supply them as
fq=Title:(val64 val65)?

On Fri, Nov 27, 2015 at 6:11 PM, Vishnu Mishra  wrote:

> Hi
>
> I am using solr 5.3.1 in my application. I have indexed field named given
> below :
>
>  multiValued="true" docValues="true" />
>
> And then using solr json facet API for faceting. But it seems that json
> facet API produce less and incorrect result counts than simple solr facet.
> The json facet request which I am doing is as below:
>
> json.facet={
> TitleFacet: {
> type: terms,
> field: Title,
> offset: 0,
> limit: 100,
> mincount: 1,
> sort: {
> count: desc
> }
> }
> }
>
> gives for example 63 count. And then equivalent simple facet query given
> below
>
>
> facet=true=Title=100=1=0
>
> gives 65 count.
>
>
> Is there any issue with Solr Json facet or am I doing anything wrong. Can
> anybody help me.
>
>
>
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Facet-count-mismatch-between-solr-simple-facet-and-Json-facet-API-tp4242461.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>



-- 
Sincerely yours
Mikhail Khludnev
Principal Engineer,
Grid Dynamics





Re: Facet count mismatch between solr simple facet and Json facet API.

2015-11-27 Thread Alexandre Rafalovitch
This is not quite enough information without seeing real data, I suspect.

What do you get in the Admin Schema screen when you load the term counts?

As a completely random poke-in-the-dark, do you by any chance get the
same value more than once for the same record's multiValued field? I
could see something like this being an edge-case triggering a possible
bug or different interpretation of counts. Obviously, we are looking
at the indexed, rather than stored form here (not that you store
anyway).

Regards,
   Alex.

Newsletter and resources for Solr beginners and intermediates:
http://www.solr-start.com/


On 27 November 2015 at 10:11, Vishnu Mishra  wrote:
> Hi
>
> I am using solr 5.3.1 in my application. I have indexed field named given
> below :
>
>  multiValued="true" docValues="true" />
>
> And then using solr json facet API for faceting. But it seems that json
> facet API produce less and incorrect result counts than simple solr facet.
> The json facet request which I am doing is as below:
>
> json.facet={
> TitleFacet: {
> type: terms,
> field: Title,
> offset: 0,
> limit: 100,
> mincount: 1,
> sort: {
> count: desc
> }
> }
> }
>
> gives for example 63 count. And then equivalent simple facet query given
> below
>
> facet=true=Title=100=1=0
>
> gives 65 count.
>
>
> Is there any issue with Solr Json facet or am I doing anything wrong. Can
> anybody help me.
>
>
>
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Facet-count-mismatch-between-solr-simple-facet-and-Json-facet-API-tp4242461.html
> Sent from the Solr - User mailing list archive at Nabble.com.