I'm having trouble getting my head around what you're trying to accomplish,
so if this is off base you know why <G>.

But what it smells like is that you're trying to do database-ish things in
a SOLR index, which is almost always the wrong approach. Is there a
way to index redundant data with each document so all you have to do
to get the "relevant" users is a simple query?

Adding scores is also suspect.. I don't see how that does predictable
things.

But I'm also failing completely to understand what a "relevant" user is.

not much help, if this is way off base perhaps you could provide some
additional use-cases?

Best
Erick

On Mon, Jul 26, 2010 at 2:37 AM, Bharat Jain <bharat.j...@gmail.com> wrote:

> Hello All,
>
> I have a index which store multiple objects belonging to a user
>
> for e.g.
> <schema>
>  <field name="objType" type="..." />         ---------> Identifies user
> object type e.g. userBasic or userAdv
>
>  <!-- obj 1 -->
>  <field name="first_name" type="..." />  ----> MAPS to userBasicInfoObject
>  <field name="last_name" type="..." />
>
>  <!-- obj 2 -->
>  <field name="user_data_1" type="..." /> -----> MAPS to userAdvInfoObject
>  <field name="user_data_2" type="..." />
>
> </schema>
>
>
> Now when I am doing some query I get multiple records mapping to java
> objects (identified by objType) that belong to the same user.
>
>
> Now I want to show the relevant users at the top of the list. I am thinking
> of adding the Lucene scores of different result documents to get the best
> scores. Is this correct approach to get the relevance of the user?
>
> Thanks
> Bharat Jain
>

Reply via email to