[pylucene-dev] Index Fields
Andi Vajda
vajda at osafoundation.org
Tue May 23 10:44:22 PDT 2006
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 java-user at lucene.apache.org 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
java-user at lucene.apache.org is the best place to ask these.
Andi..
More information about the pylucene-dev
mailing list