Hi Erik,

I got the source downloaded and unpacked. I am having difficulty in building and of the modules. Maybe something's wrong with my Ant installation.
************************
LuceneInAction% ant test
Buildfile: build.xml


BUILD FAILED
file:/home/hs152827/LuceneInAction/build.xml:12: Unexpected element "available"


Total time: 5 seconds

LuceneInAction% ant Indexer
Buildfile: build.xml

BUILD FAILED
file:/home/hs152827/LuceneInAction/build.xml:12: Unexpected element "available"


Total time: 5 seconds
**********************
Can you point me to proper module for creating my own indexer? I tried looking into the indexing module but was not sure.


TIA,
-H

Erik Hatcher wrote:


On Jan 5, 2005, at 6:31 PM, Hetan Shah wrote:

How can one index simple text files with out the .txt extension. I am trying to use the IndexFiles and IndexHTML but not to my satisfaction. In the IndexFiles I do not get any control over the content of the file and in case of IndexHTML the files with out any extension do not get index all together. Any pointers are really appreciated.


Try out the Indexer code from Lucene in Action. You can download it from the link here: http://www.lucenebook.com/blog/announcements/sourcecode.html

It'll be cleaner to follow and borrow from. The code that ships with Lucene is for demonstration purposes. It surprises me how often folks use that code to build real indexes. It's quite straightforward to create your own Java code to do the indexing in whatever manner you like, borrowing from examples.

When you get the download unpacked, simply run "ant Indexer" to see it in action. And then "ant Searcher" to search the index just built.

    Erik





--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to