Re: adding an Index attribute

2010-03-08 Thread Sahil Shah
Thank you MilleBii,

I will start reading it now. Is this the right link to the 'more' plugin?
http://github.com/apache/nutch/tree/bd718ff3ab1f923593e5eccaa0aaeb21370f7169/src/plugin/index-more
The thing is that I want to generate query dependent snippets from the Index
that Nutch has created while crawling. Any other reference sample
plugins/resources ? Anyone plz?

Your help is greatly appreciated.

On Mon, Mar 8, 2010 at 1:13 PM, MilleBii mille...@gmail.com wrote:

 Have a look at the more plugin it is simple to understand, how to
 index a new field, and search it later.

 2010/3/8, Sahil Shah sahilshah2...@gmail.com:
  Hello everyone,
 
  I am developing a Nutch plugin involving the addition of an index
 attribute.
  How do I add an attribute to the Index and retrieve it ? I want to sort
 the
  results based on that attribute value for each page.
 
  Any clues on this?
 


 --
 -MilleBii-



adding an Index attribute

2010-03-07 Thread Sahil Shah
Hello everyone,

I am developing a Nutch plugin involving the addition of an index attribute.
How do I add an attribute to the Index and retrieve it ? I want to sort the
results based on that attribute value for each page.

Any clues on this?


Re: Trying to Add an new NutchDoc from plugin

2010-02-15 Thread Sahil Shah
Maybe I can try...debugging an Indexing plugin is kinda tricky.
can you attach the req files and folders and tell me exactly what procedure
to follow?
Also any settings to be modified



On Tue, Feb 16, 2010 at 12:10 AM, UDd dekelu...@gmail.com wrote:


 Hi there,
 Im new to the forum and nutch as well...
 I wrote a plugin to nutch that implements the IndexingFilter...
 Now i want to add a new Document to the index from the plugin (split the
 current doc)
 I tryed testing it from something like this

 NutchIndexWriter[] Writers =
 NutchIndexWriterFactory.getNutchIndexWriters(getConf());
 Writers[0].write(doc);

 the doc is the doc i get in the method not something new i
 created.(just
 for testing)

 And i get the error it doesn't make sense to have a field that is neither
 indexed nor stored

 Any suggestions?
 --
 View this message in context:
 http://old.nabble.com/Trying-to-Add-an-new-NutchDoc-from-plugin-tp27598076p27598076.html
 Sent from the Nutch - Dev mailing list archive at Nabble.com.




plugin dev trouble

2010-02-07 Thread Sahil Shah
Hey Everyone,

I want to write a plugin that generates snippets/ summary based on the query
by using index based approach. I have read the wiki but I am still not clear
as to how to understand the source code.The API collection is also huge
There are so many interfaces and classes. Where to start and how to find the
ones that I need to modify?

I will need to modify the index structure. How do I do that? Also the parser
will have to modified. Where to start is not clear...Any help will be
greatly appreciated...