I've written some extensions that parse for custom information
and then add it as a new field in the index. That seems to work on the
crawls and when I do an "explain" I see my field for a given document
and the expected contents.
I'm trying to have it so that searches go against my field as
well as the normal fields (title, url, etc.). Initially I wrote an
extension to the raw query filter. That seemed to work to some degree,
but required that I perform searches like this: "[my_field_name]:term
term" to get the desired result.
In looking at the query-basic filter, I decided that what I
really wanted was just to replace query-basic with my own filter which
adds in my field to those that it searches. I added my field in the
"FIELDS" array and added a boost for it in the "FIELD_BOOSTS". When I
run searches right now I'm getting 0 hits. Looking more closely at the
code it looks like I also need to add a Clause for my field.
Is that right and if so where does the clause get added? Or am
I completely off base here and should be going in a different direction?
Thanks,
Jake.
-------------------------------------------------------
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://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Nutch-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-general