>
> > writer = new IndexWriter("C:\\", new StandardAnalyzer(), true);
> > Term term = new Term("line", "KOREA");
> > PhraseQuery query = new PhraseQuery();
> > query.add(term);
>
StandardAnalyzer - used here while indexing - applies lowercasing.
The query is created programatically - i.e. without
java-user@lucene.apache.org
Subject: Re: Need help searching
What Analyzer is your searcher using?
C:\\ as the index location sounds "super funky".
Why not C:\\MyIndex , so your index files are not all mixed up with whatever
lives in C:\\
Otis
--
Sematext -- http://sematext.com/ -- L
rom: Brittany Jacobs <[EMAIL PROTECTED]>
> To: java-user@lucene.apache.org
> Sent: Friday, August 8, 2008 11:20:11 AM
> Subject: Need help searching
>
> I want to search all the documents for a string.
> So I have the following. But Hits isn't returning anything.
&
I want to search all the documents for a string.
So I have the following. But Hits isn't returning anything.
What am I doing wrong? Thanks in advance.
File f = new File("AddressData.txt");
IndexWriter writer;
try {
writer = new IndexWriter("C:\\", new StandardAnalyzer(), true);
FileInputStream