i build an index to store 100 docs, each with field author, title and
abstract.for (i=0;i<100;i++) {writer = new IndexWriter("index",new
StandardAnalyzer(),true,IndexWriter.MaxFieldLength.UNLIMITED);
doc.add(new Field("author",cfcDoc.getAu(), Field.Store.YES,
Field.Index.TOKENIZED));do
ing, if you search for "Hotel" you might not find anything
> if the querystring is not passed through the StandardAnalyzer you use
> for indexing. (well, or another analyzer that does lowercasing).
> BTW. you email is hard to read though - I don't see a single newline.
returns 0 hits :(
> Date: Wed, 27 Jan 2010 12:47:57 +0100
> Subject: Re: Index searching problem
> From: simon.willna...@googlemail.com
> To: java-user@lucene.apache.org
>
> Do you open the searcher / reader after you call commit on the writer?
>
> simon
>
> On Wed
IndexSearcher is = new IndexSearcher("index");IndexReader ir =
is.getIndexReader().open("index");System.out.println("No of documents in index
= "+ir.numDocs());
The last statement shows no of documents = 167. that means IndexReader is
reading from index, which is open. I think the problem may
Hi, I am new to use lucene, I have a query string of multiple terms. i) i want
to return query string by removing stop words and stemmed version of the query.
ii) second i want to get tf and idf of each term in a query, how to get it?
Asif
_
ve tried boolean query
but unable to do this.
> From: thienthanhom...@gmail.com
> Date: Wed, 3 Feb 2010 04:59:49 +0900
> Subject: Re: Getting DF & IDF
> To: java-user@lucene.apache.org
>
> with my idea,
> using BooleanQuery, you can make every thing.
>
>
> On M