Re: lucene 3.0.3 | searching problem with *.docx file

2011-04-12 Thread Erick Erickson
You've given us anything to go on here, except "it doesn't work". You might review this page: http://wiki.apache.org/solr/UsingMailingLists Best Erick On Tue, Apr 12, 2011 at 9:05 AM, Ranjit Kumar wrote: > Hi, > > I am creating index with help of StandardAnalyzer for *.docx file it's > fine. Bu

RE: lucene 3.0.3 | searching problem with *.docx file

2011-04-12 Thread Steven A Rowe
; To: java-user-h...@lucene.apache.org; java-user@lucene.apache.org > Subject: lucene 3.0.3 | searching problem with *.docx file > > Hi, > > I am creating index with help of StandardAnalyzer for *.docx file it's > fine. But at the time of searching it do not gives result for these *.

lucene 3.0.3 | searching problem with *.docx file

2011-04-12 Thread Ranjit Kumar
Hi, I am creating index with help of StandardAnalyzer for *.docx file it's fine. But at the time of searching it do not gives result for these *.docx file. any help or suggestion will be appreciated!!! Thanks & Regards, Ranjit Kumar =

Re: Index searching problem

2010-01-27 Thread Simon Willnauer
t;content". Could that cause your problem? simon > > > >> 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 aft

RE: Index searching problem

2010-01-27 Thread Asif Nawaz
open. I think the problem may exists in query parser. I am using following code QueryParser parser = new QueryParser("content", analyzer); Query query = parser.parse(queryString);Hits hits = is.search(query); > Date: Wed, 27 Jan 2010 12

RE: Index searching problem

2010-01-27 Thread Asif Nawaz
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

Re: Index searching problem

2010-01-27 Thread Ian Lea
Why??? >> Hits hits = se.performSearch("significance");System.out.println("hits length >> = "+ hits.length()); >> >> >> >> >> >> >> >> >> >> >> >>> Date: Wed, 27 Jan 2010 10:45:27 +0100 >

Re: Index searching problem

2010-01-27 Thread Simon Willnauer
But in my > program it returns no of hits = 0. Why??? > Hits hits = se.performSearch("significance");System.out.println("hits length > = "+ hits.length()); > > > > > > > > > > > >> Date: Wed, 27 Jan 2010 10:45:27 +0100 >> Subject: R

RE: Index searching problem

2010-01-27 Thread Asif Nawaz
"+ hits.length()); > Date: Wed, 27 Jan 2010 10:45:27 +0100 > Subject: Re: Index searching problem > From: simon.willna...@googlemail.com > To: java-user@lucene.apache.org > > do you close your index writer or commit it before you open your searcher? > > one more th

Re: Index searching problem

2010-01-27 Thread Simon Willnauer
do you close your index writer or commit it before you open your searcher? one more thing, 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

Index searching problem

2010-01-27 Thread Asif Nawaz
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

Re: Searching Problem

2006-10-26 Thread Sunil Kumar PK
Thanks Mike for the information. Actually I am using RemoteParallelMultiSearcher with 10 Search Servers, my crawler program freequently add new documents in to all the Search Servers in a distributed manner. So in this case, if I add a document in a particular index, I need to restart the searche

Re: Searching Problem

2006-10-26 Thread Michael McCandless
Sunil Kumar PK wrote: could you please explain? On 10/26/06, Karel Tejnora <[EMAIL PROTECTED]> wrote: Nope. IndexReader obtains a snapshot of index - not closing and opening indexreader leads to not deleting files (windows exception, linux will not free them). > Is it possible to get all the ma

Re: Searching Problem

2006-10-26 Thread Sunil Kumar PK
could you please explain? On 10/26/06, Karel Tejnora <[EMAIL PROTECTED]> wrote: Nope. IndexReader obtains a snapshot of index - not closing and opening indexreader leads to not deleting files (windows exception, linux will not free them). > Is it possible to get all the matching document in the

Re: Searching Problem

2006-10-26 Thread Karel Tejnora
Nope. IndexReader obtains a snapshot of index - not closing and opening indexreader leads to not deleting files (windows exception, linux will not free them). Is it possible to get all the matching document in the result without restarting the Searcher program?

Searching Problem

2006-10-26 Thread Sunil Kumar PK
Hi, I have a program to create a lucene index, and another program for searching that index. The Search program create an IndexSearcher object once in its constructor, and I created a method doSearch to search the index. The doSearch method uses the indexSearcher object to get the Hits. My Inde

Re: searching problem

2005-09-21 Thread Otis Gospodnetic
Hello, You could extract the file name extension at index time, and index it as a Field.Keyword. Then you can search for it with a simple TermQuery or : syntax using QueryParser. Otis P.S. Please don't cross-post - use [EMAIL PROTECTED] list --- haipeng du <[EMAIL PROTECTED]> wrote: > how cou