Need help searching

2008-08-08 Thread Brittany Jacobs
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

Re: Need help searching

2008-08-08 Thread Otis Gospodnetic
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. &

RE: Need help searching

2008-08-08 Thread Brittany Jacobs
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

Re: Need help searching

2008-08-09 Thread Doron Cohen
> > > 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