Adapting the Lucene Demo

K

Keith

I'm using the code from http://lucene.apache.org/java/2_1_0/demo.html
that I'm adapting.

The final application will be a CD-ROM search through a set of
documents on a CD_ROM.

I'd like to be able to limit searches to a sub-set of the documents,
identifiable by the first two letters of the filename.

I thought I'd be able to do this using a filtered query, but I can't
figure out how.

QueryFilter qf = new QueryFilter(filterString);

just gives me

The constructor QueryFilter(String) is undefined

How can I constrain the query to only return documents contained in
files whose name begin "CP", for example?


K.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top