Mailing List Archive

Indexing XML files
Hi friends,
I want to know how do we index XML files so that we can do tag based search.
I am able to do simple text search on XML file.
I'll be very thankful for ur help.
Vanita
IIITM-K
RE: Indexing XML files [ In reply to ]
You have to right a little XML parser ( I used JDOM )
and parse to the lucene indexer field and value pairs
depending on you XML fields/attributes, then
you'll be able to search by field.

The examples on the site are a good starting point for an indexer

Nader Henein


-----Original Message-----
From: vanita singh [mailto:vanita@iiitmk.ac.in]
Sent: Thursday, July 18, 2002 7:05 PM
To: lucene-user@jakarta.apache.org
Subject: Indexing XML files


Hi friends,
I want to know how do we index XML files so that we can do tag based search.
I am able to do simple text search on XML file.
I'll be very thankful for ur help.
Vanita
IIITM-K


--
To unsubscribe, e-mail: <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>
Re: Indexing XML files [ In reply to ]
Vanita,

If you check out the contributions page for Lucene you'll see several
options. If you are wanting to search based on the structure of the XML
file, I would recommend looking at the W. Eliot Kimber submission to see an
example of how to do this.

Also, if you search through the mail archive on this topic, you'll find
plenty of related discussion.

-Brandon
brandonj@isogen.com


----- Original Message -----
From: "vanita singh" <vanita@iiitmk.ac.in>
To: <lucene-user@jakarta.apache.org>
Sent: Thursday, July 18, 2002 10:04 AM
Subject: Indexing XML files


Hi friends,
I want to know how do we index XML files so that we can do tag based search.
I am able to do simple text search on XML file.
I'll be very thankful for ur help.
Vanita
IIITM-K



--
To unsubscribe, e-mail: <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>