K
Keith Beef
I have a question about building an index file.
I've been using the Lucene demo from
http://lucene.apache.org/java/2_1_0/demo.html
I want to add a field named "category" to my HTML documents, and ideally I
would like to do this by reading a meta tag in the HTML document, so that
when searching I can use a term like "category:spare_parts" to limit the
hits returned.
E.g., when indexing the file123456789.html the tag <meta name="category"
content="spare_parts"> would put the value "spare parts" in the "category"
field.
So how could I do this?
Regards,
Keith.
I've been using the Lucene demo from
http://lucene.apache.org/java/2_1_0/demo.html
I want to add a field named "category" to my HTML documents, and ideally I
would like to do this by reading a meta tag in the HTML document, so that
when searching I can use a term like "category:spare_parts" to limit the
hits returned.
E.g., when indexing the file123456789.html the tag <meta name="category"
content="spare_parts"> would put the value "spare parts" in the "category"
field.
So how could I do this?
Regards,
Keith.