Could this be used as a security filter to filter search results according to who the user was? The company I work for ran an evaluation of Nutch and Google, and threw Nutch out purely on the basis it didn't have that functionality :( I'd like to see that working if possible.

Ed.

Hi Kumar,

Take a look to the creative commons plugin, it should pretty much what you are looking for:
Just write a class llike:

import org.apache.nutch.searcher.RawFieldQueryFilter;

public class YourQueryFilter extends RawFieldQueryFilter {
  public YourQueryFilter() {
super("luceneIndexFieldName"); // name of the field you storing your data in
  }
}

Than you just need to extend the query the user is submitting with something like:
String finalQuery = userQuery+ "luceneIndexFieldName:ThevalueToset"

Just setup your plugin.xml that's it.

HTH
Stefan



Am 14.12.2005 um 10:58 schrieb Kumar Limbu:

Hi everyone,

I am trying to write a custom plugin which will insert ( field and  value)
pair into the indexed webpages depending upon its content. I have
successfully written the plugin for parsing the data and then  inserting
custom information based on the contents. What I couldn't do is  write a
custom query filter which will return results based only on that particular
field.

I saw the code for urlQueryFilter but I wasn't able to understand  it very
well.

If you guys can help me I will be very grateful. Thank you everyone.

--
Keep on smiling
:) Kumar





-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Nutch-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-general

Reply via email to