Hi Sagar,

  If index size is not a major consideration, you could actually create one
document per user-url pair.

  So, if 50 users have the same url in their search, you would have 50
different documents added to your lucene index. Of course, depending on your
use case, this might bloat up the index considerably.

You can create an indexing plugin (like index-more) to index the user field
and create a searching plugin (like query-more) to search on this field.

Hope this helps :)

-vishal.


-----Original Message-----
From: rubenll [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 25, 2007 12:30 PM
To: [email protected]
Subject: Re: index/search per user urls


thanks a lot.

But, How can I add user for each url in the indexing phase.



Sagar Naik-2 wrote:
> 
> Hey,
> 
> Pl have a look at the reduce function in Indexer class. This cud be 
> place to add the user in the index.
> The user name could be stored in CrawlDatum (during the injector phase)
> 
> U wud also need a query plugin to handle the "user" element in the 
> query. Pl have a look at query-basic or query-more plugin
> 
> Hope this helps ;)
> 
> - Sagar
> 
> rubenll wrote:
>> Hello, I´m a little "lost". I would like to index users urls and search
>> in
>> results in a per user  basic. A user search in his own url results.
>>
>> IS there any plugin or configuration?. How can I Insert a new field in
>> the
>> index in crawl time?
>>
>> regards
>> Rub
>>   
> 
> 
> -- 
> This message has been scanned for viruses and
> dangerous content and is believed to be clean.
> 
> 
> 

-- 
View this message in context:
http://www.nabble.com/index-search-per-user-urls-tf4683746.html#a13401301
Sent from the Nutch - User mailing list archive at Nabble.com.

Reply via email to