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
Does GenericTypeahead always return the results with the highest score?
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
  6 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
 
yuan  
View profile  
 More options Apr 10 2012, 12:01 am
From: yuan <huapengy...@gmail.com>
Date: Mon, 9 Apr 2012 21:01:01 -0700 (PDT)
Local: Tues, Apr 10 2012 12:01 am
Subject: Does GenericTypeahead always return the results with the highest score?
Hi:

I have a couple of questions about GenericTypeahead  after looked at
the code of cleo.

(1) Looks like GenericTypeahead return all of matched elements. Is
this correct?
    If it is true, what if a key(term) are matched with lots of
elements? For example, 1 million.  It will comsumes lots of memory and
increase latence.

(2) In the indexDataStore, looks like elements are not sorted by
score.  Also, the seach() function has a paramter timeoutMillis.
What if the function search() reutrn earlier because of
timeoutMillis,  can  GenericTypeahead  guarntee return elemetns with
the highest score?

Thanks a lot for the great project.

Yuan


 
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.
Jingwei  
View profile  
 More options Apr 10 2012, 12:54 am
From: Jingwei <jingwei...@gmail.com>
Date: Mon, 9 Apr 2012 21:54:52 -0700 (PDT)
Local: Tues, Apr 10 2012 12:54 am
Subject: Re: Does GenericTypeahead always return the results with the highest score?
Hi,

Please see my reply below.

On Apr 9, 9:01 pm, yuan <huapengy...@gmail.com> wrote:

> Hi:

> I have a couple of questions about GenericTypeahead  after looked at
> the code of cleo.

> (1) Looks like GenericTypeahead return all of matched elements. Is
> this correct?
>     If it is true, what if a key(term) are matched with lots of
> elements? For example, 1 million.  It will comsumes lots of memory and
> increase latence.

This really depends on the type of Collector you are using. There are
several different types Collector you can use to return over 1 million
elements or top 10 elements. Choose the collector that suits your
needs.

> (2) In the indexDataStore, looks like elements are not sorted by
> score.  Also, the seach() function has a paramter timeoutMillis.
> What if the function search() reutrn earlier because of
> timeoutMillis,  can  GenericTypeahead  guarntee return elemetns with
> the highest score?

For typeahead, as a user is typing more characters, the search scope
is narrowing down quickly. The timeoutMillis is for early termination
to guarantee response time but not full coverage. If your program
really need to find the elements with the highest score, you should
NOT consider using timeout.


 
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.
yuan  
View profile  
 More options Apr 10 2012, 2:58 pm
From: yuan <huapengy...@gmail.com>
Date: Tue, 10 Apr 2012 11:58:51 -0700 (PDT)
Local: Tues, Apr 10 2012 2:58 pm
Subject: Re: Does GenericTypeahead always return the results with the highest score?
Thanks Jingwei:

 We need return the highest score, we also expect low latency.  But if
the inverted list is long, it may take long to process the entire
list.
I am not sure whether there are some ways to contorl the maximum lengh
of the inverted list.   I see you mentioned cleo partition in the
document. Looks like  the partition is based on elementID rather than
prefix?

If the partition is based on elelmentID, the maximum length of the
invered list may not be very long. But a single query will touch all
of partitions.  In a distributed system, it means it will touch all of
nodes. I am understanding correctly?

Thanks.

Yuan

On Apr 10, 12:54 am, Jingwei <jingwei...@gmail.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.
Jingwei  
View profile  
 More options Apr 11 2012, 2:26 pm
From: Jingwei <jingwei...@gmail.com>
Date: Wed, 11 Apr 2012 11:26:45 -0700 (PDT)
Local: Wed, Apr 11 2012 2:26 pm
Subject: Re: Does GenericTypeahead always return the results with the highest score?
Partitions will help since requests are evaluated in parallel.
Partition is based on elementID. You may want to experiment with your
data sets to see how many partitions you can hold on one box in order
to have acceptable performance.

Best

Jingwei

On Apr 10, 11:58 am, yuan <huapengy...@gmail.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.
Altynai  
View profile  
 More options Sep 10 2012, 9:30 pm
From: Altynai <altynai...@gmail.com>
Date: Mon, 10 Sep 2012 18:30:28 -0700 (PDT)
Local: Mon, Sep 10 2012 9:30 pm
Subject: Re: Does GenericTypeahead always return the results with the highest score?

Hi Yuan.
Recently,I'm also working with cleo,but I faced a lot of
problems,especially dealing with the big data,If you have time,I would like
to ask you some questions.My email address is Altynai...@gamil.com
Thanks!


 
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.
Jingwei  
View profile  
 More options Sep 18 2012, 2:27 pm
From: Jingwei <jingwei...@gmail.com>
Date: Tue, 18 Sep 2012 11:27:38 -0700 (PDT)
Local: Tues, Sep 18 2012 2:27 pm
Subject: Re: Does GenericTypeahead always return the results with the highest score?

Would you mind giving some details about your data? How many elements are
you talking about? How did you partition your data? etc.

Thanks.

Jingwei


 
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 »