On Tue, 23 May 2006, Thapar, Ashwin wrote:

I have successfully got pyLucene running, and it works great at indexing
text files in a folder and then searching for simple strings within the
index.

I want to take my system a step further and add more specific fields,
than the basic "contents" field to the index (so that I can later sort
by these fields)

I have structured text files, and I want to extract specific pieces of
information from each text file, and store it in a separate field in the
index.

For example, each text file contains a line starting with Date Added:,
which is followed by a date. What I would like to do, is somehow extract
this date from each text file, and store it in a field called "date" for
each  record in the index.

Is there any way to do this?

I'm sure there is and if you ask [email protected] they might tell you how. This list is for bugs and development issues specific to PyLucene. Your question is clearly a general Lucene usage question and [email protected] is the best place to ask these.

Andi..

_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to