Scott Green wrote:
> On 1/24/07, Sean Dean <[EMAIL PROTECTED]> wrote:
>> What exactly are you looking to do?
>>
>> If you don't crawl for anything, then what data are you looking to 
>> index?
>>
>> You can certainly take some other persons Nutch segment (that they 
>> crawled) and then index it yourself, on your machines.
>>
> Hi
>
> My requirements only for debugging. Let pseudocodes talk what i 
> exactly need:
>
> //File content = new File(....)
> String[] content = new String[]{".....", "......."};
> debugTool.generateIndex(content);
>
>
>> ----- Original Message ----
>> From: Scott Green <[EMAIL PROTECTED]>
>> To: [email protected]
>> Sent: Tuesday, January 23, 2007 12:08:31 PM
>> Subject: Can I generate nutch index without crawling?
>>
>>
>> Hi,
>>
>> I am now debugging nutch searcher and wondering can I generate nutch
>> index without crawling? If yes, can you give me some hints? Thanks.
>>
>
nutch uses lucene for indexing. you can use lucene api for creating an 
index from any content.
1. open an index writer
2. create documents
3. add the documents to the index.
4. close the indexwriter
5. open the indexes with indexReader if you want.


you can look at lucene api, or the book called Lucene in Action.



 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nutch-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-general

Reply via email to