Re: Regarding Solr Faceting on the query response.

2014-02-02 Thread Mikhail Khludnev
Ok.

"BOSE", 0, "Walmart", 0, are not a problem because you can heal it by
facet.mincount.

"Oracle", 25, seems to be a problem. You need to find which documents
provided hits to this facet value. lets add filter parameter
fq=company:Oracle and you'll have 25 results which provide this facet
value. I suppose you have some unexpected query parser configuration you
can check it by specifying debugQuery=true parameter. Also, perhaps the
indexing configuration might not be correct eg some document has both
companies Apple and Oracle.
Once again, facets are counted against the result docset.



On Fri, Jan 31, 2014 at 10:17 PM, Kuchekar wrote:

> Hi Mikhail,
>
>The Actual result is as following
>
> "facet_counts": {
>  "facet_queries": {}, "facet_fields": { "company": [ "Apple", 215, "BOSE",
> 0,
> "Walmart", 0, "Oracle", 25,
>
>  ...
>  ...
>  ...
>  ...   "Microsoft",
>  34, "ATT", 45
> ] }, "facet_dates": {}, "facet_ranges": {} }
>
>
> The Expected result would be
>
> "facet_counts": {
>  "facet_queries": {}, "facet_fields": { "company": [ "Apple", 215
> ] }, "facet_dates": {}, "facet_ranges": {} }
>
> Thanks
> Kuchekar, Nilesh
>
>
> On Fri, Jan 31, 2014 at 5:24 AM, Mikhail Khludnev <
> mkhlud...@griddynamics.com> wrote:
>
> > On Thu, Jan 30, 2014 at 9:35 PM, Kuchekar 
> > wrote:
> >
> > >
> > > "docs": [ { "id": "ABC123", "company": [ "APPLE" ] },
> > > { "id": "ABC1234", "company": [ "APPLE" ] },
> > > { "id": "ABC1235", "company": [ "APPLE" ] },
> > > { "id": "ABC1236", "company": [ "APPLE" ] } ] }, "facet_counts": { "
> > > facet_queries": { "p_company:ucsf\n": 1 }, "facet_fields": {
> "company": [
> > > "APPLE", 4, ] }, "facet_dates": {}, "facet_ranges": {} }
> > >
> >
> > Is it your 'expected' result? If it is, please repeat an 'actual' once
> > again. I have one idea in mind, please answer to let me confirm my
> guess. I
> > share my idea after that.
> >
> >
> > --
> > Sincerely yours
> > Mikhail Khludnev
> > Principal Engineer,
> > Grid Dynamics
> >
> > 
> >  
> >
>



-- 
Sincerely yours
Mikhail Khludnev
Principal Engineer,
Grid Dynamics


 


Re: Regarding Solr Faceting on the query response.

2014-01-31 Thread Kuchekar
Hi Mikhail,

   The Actual result is as following

"facet_counts": {
 "facet_queries": {}, "facet_fields": { "company": [ "Apple", 215, "BOSE", 0,
"Walmart", 0, "Oracle", 25,

 ...
 ...
 ...
 ...   "Microsoft",
 34, "ATT", 45
] }, "facet_dates": {}, "facet_ranges": {} }


The Expected result would be

"facet_counts": {
 "facet_queries": {}, "facet_fields": { "company": [ "Apple", 215
] }, "facet_dates": {}, "facet_ranges": {} }

Thanks
Kuchekar, Nilesh


On Fri, Jan 31, 2014 at 5:24 AM, Mikhail Khludnev <
mkhlud...@griddynamics.com> wrote:

> On Thu, Jan 30, 2014 at 9:35 PM, Kuchekar 
> wrote:
>
> >
> > "docs": [ { "id": "ABC123", "company": [ "APPLE" ] },
> > { "id": "ABC1234", "company": [ "APPLE" ] },
> > { "id": "ABC1235", "company": [ "APPLE" ] },
> > { "id": "ABC1236", "company": [ "APPLE" ] } ] }, "facet_counts": { "
> > facet_queries": { "p_company:ucsf\n": 1 }, "facet_fields": { "company": [
> > "APPLE", 4, ] }, "facet_dates": {}, "facet_ranges": {} }
> >
>
> Is it your 'expected' result? If it is, please repeat an 'actual' once
> again. I have one idea in mind, please answer to let me confirm my guess. I
> share my idea after that.
>
>
> --
> Sincerely yours
> Mikhail Khludnev
> Principal Engineer,
> Grid Dynamics
>
> 
>  
>


Re: Regarding Solr Faceting on the query response.

2014-01-31 Thread Jérôme Étévé
On 30 January 2014 17:35, Kuchekar  wrote:
> Hi Mikhail,
>
>  I would like my faceting to run only on my resultset
> returned as in only on numFound, rather than the whole index.

As far as I know, unless you define filter tagging and exclusion, this
is the default facet behaviour.

Are you sure no such things are defined?

Can you send your full solr query?

J.


> In the example, even when I specify the query 'company:Apple' .. it gives
> me faceted results for other companies. This means that it is querying
> against the whole index, rather than just the result set.
>
> Using facet.mincount=1 will give me faceted values which are greater than
> 1, but that will again to retrieve all the distinct values (Apple, Bose,
> Chevron, ..Oracle..) of facet field (company) query the whole index.
>
> What I would like to do is ... facet only on the resultset.
>
> i.e. my query (q= company:Apple AND technologies:java ) should return, only
> the facet details about 'Apple' since that is only present in the results
> set. But it provides me the list of other Company Names ... which makes me
> believe that it is querying the whole index to get the distinct value for
> the company..
>
> "docs": [ { "id": "ABC123", "company": [ "APPLE" ] },
> { "id": "ABC1234", "company": [ "APPLE" ] },
> { "id": "ABC1235", "company": [ "APPLE" ] },
> { "id": "ABC1236", "company": [ "APPLE" ] } ] }, "facet_counts": { "
> facet_queries": { "p_company:ucsf\n": 1 }, "facet_fields": { "company": [
> "APPLE", 4, ] }, "facet_dates": {}, "facet_ranges": {} }
>
>
>  Thanks.
> Kuchekar, Nilesh
>
>
> On Thu, Jan 30, 2014 at 2:13 AM, Mikhail Khludnev <
> mkhlud...@griddynamics.com> wrote:
>
>> Hello
>> Do you mean setting
>> http://wiki.apache.org/solr/SimpleFacetParameters#facet.mincount to 1 or
>> you want to facet only returned page (rows) instead of full resultset
>> (numFound) ?
>>
>>
>> On Thu, Jan 30, 2014 at 6:24 AM, Nilesh Kuchekar
>> wrote:
>>
>> > Yeah it's a typo... I meant company:Apple
>> >
>> > Thanks
>> > Nilesh
>> >
>> > > On Jan 29, 2014, at 8:59 PM, Alexandre Rafalovitch > >
>> > wrote:
>> > >
>> > >> On Thu, Jan 30, 2014 at 3:43 AM, Kuchekar 
>> > wrote:
>> > >> company=Apple
>> > > Did you mean company:Apple ?
>> > >
>> > > Otherwise, that could be the issue.
>> > >
>> > > Regards,
>> > >   Alex.
>> > >
>> > >
>> > > Personal website: http://www.outerthoughts.com/
>> > > LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch
>> > > - Time is the quality of nature that keeps events from happening all
>> > > at once. Lately, it doesn't seem to be working.  (Anonymous  - via GTD
>> > > book)
>> >
>>
>>
>>
>> --
>> Sincerely yours
>> Mikhail Khludnev
>> Principal Engineer,
>> Grid Dynamics
>>
>> 
>>  
>>



-- 
Jerome Eteve
+44(0)7738864546
http://www.eteve.net/


Re: Regarding Solr Faceting on the query response.

2014-01-31 Thread Mikhail Khludnev
On Thu, Jan 30, 2014 at 9:35 PM, Kuchekar  wrote:

>
> "docs": [ { "id": "ABC123", "company": [ "APPLE" ] },
> { "id": "ABC1234", "company": [ "APPLE" ] },
> { "id": "ABC1235", "company": [ "APPLE" ] },
> { "id": "ABC1236", "company": [ "APPLE" ] } ] }, "facet_counts": { "
> facet_queries": { "p_company:ucsf\n": 1 }, "facet_fields": { "company": [
> "APPLE", 4, ] }, "facet_dates": {}, "facet_ranges": {} }
>

Is it your 'expected' result? If it is, please repeat an 'actual' once
again. I have one idea in mind, please answer to let me confirm my guess. I
share my idea after that.


-- 
Sincerely yours
Mikhail Khludnev
Principal Engineer,
Grid Dynamics


 


Re: Regarding Solr Faceting on the query response.

2014-01-30 Thread Alexandre Rafalovitch
Hi Nilesh,

I am not sure the faceting code does what you think it does. However,
there are different options and you can experiment with whichever one
is best for you. They are controlled by the facet.method parameter:
http://wiki.apache.org/solr/SimpleFacetParameters#facet.method

Regards,
   Alex.
Personal website: http://www.outerthoughts.com/
LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch
- Time is the quality of nature that keeps events from happening all
at once. Lately, it doesn't seem to be working.  (Anonymous  - via GTD
book)


On Fri, Jan 31, 2014 at 12:51 AM, Felipe Dantas de Souza Paiva
 wrote:
> Hi Nilesh,
>
> maybe Facetting is not the right thing for you, because 'faceting is the 
> arrangement of search results into categories based on indexed terms' 
> (https://cwiki.apache.org/confluence/display/solr/Faceting).
>
> Perhaps you could use Result Clustering 
> (https://cwiki.apache.org/confluence/display/solr/Result+Clustering), for   
> the clustering algorithm is applied to the search result of each single query.
>
> Hope this helps.
>
> Felipe Dantas de Souza Paiva
> 
> De: Kuchekar [kuchekar.nil...@gmail.com]
> Enviado: quinta-feira, 30 de janeiro de 2014 15:35
> Para: solr-user@lucene.apache.org
> Assunto: Re: Regarding Solr Faceting on the query response.
>
> Hi Mikhail,
>
>  I would like my faceting to run only on my resultset
> returned as in only on numFound, rather than the whole index.
>
> In the example, even when I specify the query 'company:Apple' .. it gives
> me faceted results for other companies. This means that it is querying
> against the whole index, rather than just the result set.
>
> Using facet.mincount=1 will give me faceted values which are greater than
> 1, but that will again to retrieve all the distinct values (Apple, Bose,
> Chevron, ..Oracle..) of facet field (company) query the whole index.
>
> What I would like to do is ... facet only on the resultset.
>
> i.e. my query (q= company:Apple AND technologies:java ) should return, only
> the facet details about 'Apple' since that is only present in the results
> set. But it provides me the list of other Company Names ... which makes me
> believe that it is querying the whole index to get the distinct value for
> the company..
>
> "docs": [ { "id": "ABC123", "company": [ "APPLE" ] },
> { "id": "ABC1234", "company": [ "APPLE" ] },
> { "id": "ABC1235", "company": [ "APPLE" ] },
> { "id": "ABC1236", "company": [ "APPLE" ] } ] }, "facet_counts": { "
> facet_queries": { "p_company:ucsf\n": 1 }, "facet_fields": { "company": [
> "APPLE", 4, ] }, "facet_dates": {}, "facet_ranges": {} }
>
>
>  Thanks.
> Kuchekar, Nilesh
>
>
> On Thu, Jan 30, 2014 at 2:13 AM, Mikhail Khludnev <
> mkhlud...@griddynamics.com> wrote:
>
>> Hello
>> Do you mean setting
>> http://wiki.apache.org/solr/SimpleFacetParameters#facet.mincount to 1 or
>> you want to facet only returned page (rows) instead of full resultset
>> (numFound) ?
>>
>>
>> On Thu, Jan 30, 2014 at 6:24 AM, Nilesh Kuchekar
>> wrote:
>>
>> > Yeah it's a typo... I meant company:Apple
>> >
>> > Thanks
>> > Nilesh
>> >
>> > > On Jan 29, 2014, at 8:59 PM, Alexandre Rafalovitch > >
>> > wrote:
>> > >
>> > >> On Thu, Jan 30, 2014 at 3:43 AM, Kuchekar 
>> > wrote:
>> > >> company=Apple
>> > > Did you mean company:Apple ?
>> > >
>> > > Otherwise, that could be the issue.
>> > >
>> > > Regards,
>> > >   Alex.
>> > >
>> > >
>> > > Personal website: http://www.outerthoughts.com/
>> > > LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch
>> > > - Time is the quality of nature that keeps events from happening all
>> > > at once. Lately, it doesn't seem to be working.  (Anonymous  - via GTD
>> > > book)
>> >
>>
>>
>>
>> --
>> Sincerely yours
>> Mikhail Khludnev
>> Principal Engineer,
>> Grid Dynamics
>>
>> <http://www.griddynamics.com>
>>  
>>
>
> 
>
> AVISO: A informação contida neste e-mail, bem como em qualquer de seus 
> anexos, é CONFIDENCIAL e destinada ao uso exclusivo do(s) destinatário(

RES: Regarding Solr Faceting on the query response.

2014-01-30 Thread Felipe Dantas de Souza Paiva
Hi Nilesh,

maybe Facetting is not the right thing for you, because 'faceting is the 
arrangement of search results into categories based on indexed terms' 
(https://cwiki.apache.org/confluence/display/solr/Faceting).

Perhaps you could use Result Clustering 
(https://cwiki.apache.org/confluence/display/solr/Result+Clustering), for   the 
clustering algorithm is applied to the search result of each single query.

Hope this helps.

Felipe Dantas de Souza Paiva

De: Kuchekar [kuchekar.nil...@gmail.com]
Enviado: quinta-feira, 30 de janeiro de 2014 15:35
Para: solr-user@lucene.apache.org
Assunto: Re: Regarding Solr Faceting on the query response.

Hi Mikhail,

 I would like my faceting to run only on my resultset
returned as in only on numFound, rather than the whole index.

In the example, even when I specify the query 'company:Apple' .. it gives
me faceted results for other companies. This means that it is querying
against the whole index, rather than just the result set.

Using facet.mincount=1 will give me faceted values which are greater than
1, but that will again to retrieve all the distinct values (Apple, Bose,
Chevron, ..Oracle..) of facet field (company) query the whole index.

What I would like to do is ... facet only on the resultset.

i.e. my query (q= company:Apple AND technologies:java ) should return, only
the facet details about 'Apple' since that is only present in the results
set. But it provides me the list of other Company Names ... which makes me
believe that it is querying the whole index to get the distinct value for
the company..

"docs": [ { "id": "ABC123", "company": [ "APPLE" ] },
{ "id": "ABC1234", "company": [ "APPLE" ] },
{ "id": "ABC1235", "company": [ "APPLE" ] },
{ "id": "ABC1236", "company": [ "APPLE" ] } ] }, "facet_counts": { "
facet_queries": { "p_company:ucsf\n": 1 }, "facet_fields": { "company": [
"APPLE", 4, ] }, "facet_dates": {}, "facet_ranges": {} }


 Thanks.
Kuchekar, Nilesh


On Thu, Jan 30, 2014 at 2:13 AM, Mikhail Khludnev <
mkhlud...@griddynamics.com> wrote:

> Hello
> Do you mean setting
> http://wiki.apache.org/solr/SimpleFacetParameters#facet.mincount to 1 or
> you want to facet only returned page (rows) instead of full resultset
> (numFound) ?
>
>
> On Thu, Jan 30, 2014 at 6:24 AM, Nilesh Kuchekar
> wrote:
>
> > Yeah it's a typo... I meant company:Apple
> >
> > Thanks
> > Nilesh
> >
> > > On Jan 29, 2014, at 8:59 PM, Alexandre Rafalovitch  >
> > wrote:
> > >
> > >> On Thu, Jan 30, 2014 at 3:43 AM, Kuchekar 
> > wrote:
> > >> company=Apple
> > > Did you mean company:Apple ?
> > >
> > > Otherwise, that could be the issue.
> > >
> > > Regards,
> > >   Alex.
> > >
> > >
> > > Personal website: http://www.outerthoughts.com/
> > > LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch
> > > - Time is the quality of nature that keeps events from happening all
> > > at once. Lately, it doesn't seem to be working.  (Anonymous  - via GTD
> > > book)
> >
>
>
>
> --
> Sincerely yours
> Mikhail Khludnev
> Principal Engineer,
> Grid Dynamics
>
> <http://www.griddynamics.com>
>  
>



AVISO: A informação contida neste e-mail, bem como em qualquer de seus anexos, 
é CONFIDENCIAL e destinada ao uso exclusivo do(s) destinatário(s) acima 
referido(s), podendo conter informações sigilosas e/ou legalmente protegidas. 
Caso você não seja o destinatário desta mensagem, informamos que qualquer 
divulgação, distribuição ou cópia deste e-mail e/ou de qualquer de seus anexos 
é absolutamente proibida. Solicitamos que o remetente seja comunicado 
imediatamente, respondendo esta mensagem, e que o original desta mensagem e de 
seus anexos, bem como toda e qualquer cópia e/ou impressão realizada a partir 
destes, sejam permanentemente apagados e/ou destruídos. Informações adicionais 
sobre nossa empresa podem ser obtidas no site http://sobre.uol.com.br/.

NOTICE: The information contained in this e-mail and any attachments thereto is 
CONFIDENTIAL and is intended only for use by the recipient named herein and may 
contain legally privileged and/or secret information.
If you are not the e-mail´s intended recipient, you are hereby notified that 
any dissemination, distribution or copy of this e-mail, and/or any attachments 
thereto, is strictly prohibited. Please immediately notify the sender replying 
to the above mentioned e-mail address, and permanently delete and/or destroy 
the original and any copy of this e-mail and/or its attachments, as well as any 
printout thereof. Additional information about our company may be obtained 
through the site http://www.uol.com.br/ir/.


Re: Regarding Solr Faceting on the query response.

2014-01-30 Thread Kuchekar
Hi Mikhail,

 I would like my faceting to run only on my resultset
returned as in only on numFound, rather than the whole index.

In the example, even when I specify the query 'company:Apple' .. it gives
me faceted results for other companies. This means that it is querying
against the whole index, rather than just the result set.

Using facet.mincount=1 will give me faceted values which are greater than
1, but that will again to retrieve all the distinct values (Apple, Bose,
Chevron, ..Oracle..) of facet field (company) query the whole index.

What I would like to do is ... facet only on the resultset.

i.e. my query (q= company:Apple AND technologies:java ) should return, only
the facet details about 'Apple' since that is only present in the results
set. But it provides me the list of other Company Names ... which makes me
believe that it is querying the whole index to get the distinct value for
the company..

"docs": [ { "id": "ABC123", "company": [ "APPLE" ] },
{ "id": "ABC1234", "company": [ "APPLE" ] },
{ "id": "ABC1235", "company": [ "APPLE" ] },
{ "id": "ABC1236", "company": [ "APPLE" ] } ] }, "facet_counts": { "
facet_queries": { "p_company:ucsf\n": 1 }, "facet_fields": { "company": [
"APPLE", 4, ] }, "facet_dates": {}, "facet_ranges": {} }


 Thanks.
Kuchekar, Nilesh


On Thu, Jan 30, 2014 at 2:13 AM, Mikhail Khludnev <
mkhlud...@griddynamics.com> wrote:

> Hello
> Do you mean setting
> http://wiki.apache.org/solr/SimpleFacetParameters#facet.mincount to 1 or
> you want to facet only returned page (rows) instead of full resultset
> (numFound) ?
>
>
> On Thu, Jan 30, 2014 at 6:24 AM, Nilesh Kuchekar
> wrote:
>
> > Yeah it's a typo... I meant company:Apple
> >
> > Thanks
> > Nilesh
> >
> > > On Jan 29, 2014, at 8:59 PM, Alexandre Rafalovitch  >
> > wrote:
> > >
> > >> On Thu, Jan 30, 2014 at 3:43 AM, Kuchekar 
> > wrote:
> > >> company=Apple
> > > Did you mean company:Apple ?
> > >
> > > Otherwise, that could be the issue.
> > >
> > > Regards,
> > >   Alex.
> > >
> > >
> > > Personal website: http://www.outerthoughts.com/
> > > LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch
> > > - Time is the quality of nature that keeps events from happening all
> > > at once. Lately, it doesn't seem to be working.  (Anonymous  - via GTD
> > > book)
> >
>
>
>
> --
> Sincerely yours
> Mikhail Khludnev
> Principal Engineer,
> Grid Dynamics
>
> 
>  
>


Re: Regarding Solr Faceting on the query response.

2014-01-30 Thread Alexei Martchenko
I believe its not possible to facet only the page you are, facet is
supposed to work only with the full resultset. I never tried but i've never
seen a way this could be done.


alexei martchenko
Facebook  |
Linkedin|
Steam  |
4sq| Skype: alexeiramone |
Github  | (11) 9 7613.0966 |


2014-01-30 Mikhail Khludnev :

> Hello
> Do you mean setting
> http://wiki.apache.org/solr/SimpleFacetParameters#facet.mincount to 1 or
> you want to facet only returned page (rows) instead of full resultset
> (numFound) ?
>
>
> On Thu, Jan 30, 2014 at 6:24 AM, Nilesh Kuchekar
> wrote:
>
> > Yeah it's a typo... I meant company:Apple
> >
> > Thanks
> > Nilesh
> >
> > > On Jan 29, 2014, at 8:59 PM, Alexandre Rafalovitch  >
> > wrote:
> > >
> > >> On Thu, Jan 30, 2014 at 3:43 AM, Kuchekar 
> > wrote:
> > >> company=Apple
> > > Did you mean company:Apple ?
> > >
> > > Otherwise, that could be the issue.
> > >
> > > Regards,
> > >   Alex.
> > >
> > >
> > > Personal website: http://www.outerthoughts.com/
> > > LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch
> > > - Time is the quality of nature that keeps events from happening all
> > > at once. Lately, it doesn't seem to be working.  (Anonymous  - via GTD
> > > book)
> >
>
>
>
> --
> Sincerely yours
> Mikhail Khludnev
> Principal Engineer,
> Grid Dynamics
>
> 
>  
>


Re: Regarding Solr Faceting on the query response.

2014-01-29 Thread Mikhail Khludnev
Hello
Do you mean setting
http://wiki.apache.org/solr/SimpleFacetParameters#facet.mincount to 1 or
you want to facet only returned page (rows) instead of full resultset
(numFound) ?


On Thu, Jan 30, 2014 at 6:24 AM, Nilesh Kuchekar
wrote:

> Yeah it's a typo... I meant company:Apple
>
> Thanks
> Nilesh
>
> > On Jan 29, 2014, at 8:59 PM, Alexandre Rafalovitch 
> wrote:
> >
> >> On Thu, Jan 30, 2014 at 3:43 AM, Kuchekar 
> wrote:
> >> company=Apple
> > Did you mean company:Apple ?
> >
> > Otherwise, that could be the issue.
> >
> > Regards,
> >   Alex.
> >
> >
> > Personal website: http://www.outerthoughts.com/
> > LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch
> > - Time is the quality of nature that keeps events from happening all
> > at once. Lately, it doesn't seem to be working.  (Anonymous  - via GTD
> > book)
>



-- 
Sincerely yours
Mikhail Khludnev
Principal Engineer,
Grid Dynamics


 


Re: Regarding Solr Faceting on the query response.

2014-01-29 Thread Nilesh Kuchekar
Yeah it's a typo... I meant company:Apple

Thanks
Nilesh

> On Jan 29, 2014, at 8:59 PM, Alexandre Rafalovitch  wrote:
> 
>> On Thu, Jan 30, 2014 at 3:43 AM, Kuchekar  wrote:
>> company=Apple
> Did you mean company:Apple ?
> 
> Otherwise, that could be the issue.
> 
> Regards,
>   Alex.
> 
> 
> Personal website: http://www.outerthoughts.com/
> LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch
> - Time is the quality of nature that keeps events from happening all
> at once. Lately, it doesn't seem to be working.  (Anonymous  - via GTD
> book)


Re: Regarding Solr Faceting on the query response.

2014-01-29 Thread Alexandre Rafalovitch
On Thu, Jan 30, 2014 at 3:43 AM, Kuchekar  wrote:
> company=Apple
Did you mean company:Apple ?

Otherwise, that could be the issue.

Regards,
   Alex.


Personal website: http://www.outerthoughts.com/
LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch
- Time is the quality of nature that keeps events from happening all
at once. Lately, it doesn't seem to be working.  (Anonymous  - via GTD
book)


Regarding Solr Faceting on the query response.

2014-01-29 Thread Kuchekar
Hi All,

 Is there a way for faceting only on the resultset returned, rather
then all the indexed docs?

 The response time for solr query with faceting switched on, takes
a lot of time to respond. I see that, it tends to get the distinct values
in the facet field and then give the count for each of the distinct value.
I believe, since its getting all the distinct values for the facet field
from all the indexed docs, the response time is long.

e.g.

The distinct values for facet field 'company' are
'Apple,Bose,Chevron,Dell,EMC...'.

Solr Query for person: q= company=Apple AND technologies:java

Gives me following result


"facet_counts": {
 "facet_queries": {}, "facet_fields": { "company": [ "Apple", 25, "BOSE", 26,
"Walmart", 0, "Oracle", 25,

 ...
 ...
 ...
 ...   "Microsoft",
 34, "ATT", 45
] }, "facet_dates": {}, "facet_ranges": {} }


As you can see, query fetched all the distinct values for the 'Company'
along with their count. Is there a way by which I can get the faceting work
directly on the resultset, rather than all the indexed documents.

Please let me know if you have any questions or concerns.

Thanks.
Kuchekar, Nilesh