Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Find percentage of facets matched rather than number of matched documents
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Vineeth Mohan  
View profile  
 More options Sep 11 2012, 4:15 am
From: Vineeth Mohan <vineethmo...@algotree.com>
Date: Tue, 11 Sep 2012 13:45:53 +0530
Local: Tues, Sep 11 2012 4:15 am
Subject: Find percentage of facets matched rather than number of matched documents

Hi ,

Is there any way i can find the percentage of facet name matched for a
query rather than the number of documents having that facet.

That is  , instead of telling that there are 1000 documents which have a
facet yahoo , i want the result which tells me that there are 60% document
which matches the query and have a facet yahoo. Rest 40% of documents which
have the facet yahoo dont match the query.

Thanks
          Vineeth


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lukáš Vlček  
View profile  
 More options Sep 11 2012, 4:32 am
From: Lukáš Vlček <lukas.vl...@gmail.com>
Date: Tue, 11 Sep 2012 10:32:30 +0200
Local: Tues, Sep 11 2012 4:32 am
Subject: Re: Find percentage of facets matched rather than number of matched documents

Hi,

you can easily calculate the value from hits.total and count of particular
facet.

Regards,
Lukas

On Tue, Sep 11, 2012 at 10:15 AM, Vineeth Mohan
<vineethmo...@algotree.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vineeth Mohan  
View profile  
 More options Sep 11 2012, 4:56 am
From: Vineeth Mohan <vineethmo...@algotree.com>
Date: Tue, 11 Sep 2012 14:25:59 +0530
Local: Tues, Sep 11 2012 4:55 am
Subject: Re: Find percentage of facets matched rather than number of matched documents

That is also a useful variable but what i mean was not that.

Lets say there are total of 30 feeds in an index and for the field Country
, there are 10 India , 5 US and 3 UK.

No for the query "growth" , i got 20 hits , out of which for the field
country  there are 5 India , 2 US and 1 UK.

What i want is for the facet Country:India , i want the result as India -
50% , US = 40% , UK = 33.3%

Thanks
            Vineeth


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ivan Brusic  
View profile  
 More options Sep 11 2012, 2:01 pm
From: Ivan Brusic <i...@brusic.com>
Date: Tue, 11 Sep 2012 11:00:57 -0700
Local: Tues, Sep 11 2012 2:00 pm
Subject: Re: Find percentage of facets matched rather than number of matched documents
Don't quite understand your math. India 50%? Depending on what you are
after, it should either be 5/20 or 5/8. I can understand your problem
better if you can explain how those percentages are calculated.

In your first example, you have the percentage for Yahoo vs.
everything else. In your second example, you should percentages for
multiple values: India, US, and UK. Which one do you want? First one
is tricky, I would probably use two facets, one with a filter, and the
other one without, and then calculate percentages on the client side.

--

Ivan

On Tue, Sep 11, 2012 at 1:55 AM, Vineeth Mohan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
P. Hill  
View profile  
 More options Sep 14 2012, 11:56 am
From: "P. Hill" <parehi...@gmail.com>
Date: Fri, 14 Sep 2012 08:58:05 -0700
Local: Fri, Sep 14 2012 11:58 am
Subject: Re: Find percentage of facets matched rather than number of matched documents
On 9/11/2012 1:55 AM, Vineeth Mohan wrote:

> That is also a useful variable but what i mean was not that.

> Lets say there are total of 30 feeds in an index and for the field
> Country , there are 10 India , 5 US and 3 UK.

> No for the query "growth" , i got 20 hits , out of which for the field
> country  there are 5 India , 2 US and 1 UK.

> What i want is for the facet Country:India , i want the result as
> India - 50% , US = 40% , UK = 33.3%

> Thanks
>             Vineeth

I also don't see your math, but I think it is
india = 5 new ones (I suppose this means there 15 total both old and
new)  which is a growth of 50%  over the 10 original.

I'd just to two facets,
1st facet base counts
2nd facet counts growth for period
and do the division yourself.
But I think you could do both in the same search request.

-Paul


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »