How do I set the analyzer when I build the query in my code instead of
using a query parser ?
Thanks in advance
Ravi.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
That worked. Thanks a lot.
-Original Message-
From: Erik Hatcher [mailto:[EMAIL PROTECTED]
Sent: Monday, February 07, 2005 11:39 AM
To: Lucene Users List
Subject: Re: Query Analyzer
On Feb 7, 2005, at 11:29 AM, Ravi wrote:
How do I set the analyzer when I build the query in my code
Is there a way to check if an IndexSearcher is closed?
Thanks in advance,
Ravi.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://jakarta.apache.org/lucene/docs/api/org/apache/lucene/index/IndexW
riter.html#docCount()
You can try this.
-Original Message-
From: Luke Shannon [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 01, 2005 11:33 AM
To: Lucene Users List
Subject: Re: How to get document count?
Not
the analyzer during the search so when I
search on not to be I will get the document which has not-to-be as a
token.
How can I use the same analyzer to get different results in indexing
and searching?
Thanks in advance,
Ravi
will
have the same problem.
Ravi.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
How do I get the number of docs in an index If I just have access to a
searcher on that index?
Thanks in advance
Ravi.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
and to-date from the search. I was getting a
runtime exception during search, If the index does not have any
documents. That's why I was looking for some method on the searcher
object that gives me the number of documents.
Thanks
Ravi
-Original Message-
From: [EMAIL PROTECTED] [mailto
If I close a MultiSearcher, does it close all the associated searchers
too? I was getting a bad file descriptor error, if I close the
MultiSearcher object and open it again for another search without
reinstantiating the underlying searchers.
Thanks in advance,
Ravi
in the index
On Dec 9, 2004, at 1:35 PM, Ravi wrote:
Is there any other way to extract all documents from an index apart
from adding an additional field with the same value to all documents
and then doing a term query on that field with the common value?
Of course. Have a look at the IndexReader
, Ravi wrote:
That was exactly my original question. I was wondering if there are
alternatives to this approach.
In case you need only a few of the top ranking documents, and the
documents are to be sorted by date anyway, you might consider to search
each of the dates in sorted order separately
I got this working. I had to close all index searchers and writer on the
index, set them to null and call System.gc() before the delete process.
I think windows still thinks writer and searchers are pointing to the
index directory even if you close them.
Ravi
-Original Message-
From
files are getting removed. But the rest of the
.cfs are not. Has somebody had similar problem?
Thanks in advance,
Ravi.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
+ Lucene experience is
limited.
Otis
--- Ravi [EMAIL PROTECTED] wrote:
Hi
We need to delete a lucene index from our application using
java.io.file.delete(). We are closing the indexWriter and even all the
index searchers on that folder. But a call to delete returns false.
There is no lock
don't want lucene to do a merge when it has 10,000
documents. But that did not work. Can somebody explain how to set these
properties?
Thanks in advance,
Ravi.
-Original Message-
From: Luke Shannon [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 2:38 PM
To: Lucene Users List
Whats the bestway to copy an index from one directory to another? I
tried opening an IndexWriter at the new location and used addIndexes to
read from the old index. But that was very slow.
Thanks in advance,
Ravi
Can somebody explain the difference between the parameters minMergeDocs
and mergeFactor in IndexWriter. When I read the documentation, it looks
like both of them represent number of documents to be in buffer before
they are merged into a new segment.
Thanks in advance,
Ravi
further index operations.
On Wed, 17 Nov 2004 11:25:48 -0500, Ravi [EMAIL PROTECTED] wrote:
Whats the bestway to copy an index from one directory to another? I
tried opening an IndexWriter at the new location and used addIndexes
to read from the old index. But that was very slow.
Thanks
in some way. Has anyone seen this
before? I don't yet have access to the full logs so I don't have much
more information.
Many thanks,
--
Ravi/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
How do I know the number of documents to be optimized (If I have one
large index, number of documents that are in other segments) at any
time?
Thanks in advance,
Ravi.
-
To unsubscribe, e-mail: [EMAIL PROTECTED
are
using Linux.
Otis
--- Ravi [EMAIL PROTECTED] wrote:
We have one large index for a document repository of
800,000
documents.
The size of the index is 800MB. When we do searches against
the
index,
it takes 300-500ms for a single search. We wanted to test
Whats's the simplest way to merge 2 or more indexes into one large
index.
Thanks in advance,
Ravi.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
and the average response time was 13 seconds. We used a
simple IndexSearcher. Same searcher object was shared by all the
searches. I'm sure people have success in configuring lucene for better
scalability. Can somebody share their approach?
Thanks
Ravi
at the same time from a different JVM? I can access the 4000
docs on the disk. But what about those in the memory on the indexing
box? Is there a way to do this?
Thanks
Ravi.
-
To unsubscribe, e-mail: [EMAIL PROTECTED
Is there way to include stopwords in an exact phrase search? For
example, when I search on Melbourne IT, Lucene only searches for
Melbourne ignoring IT.
Thanks,
Ravi.
-
To unsubscribe, e-mail: [EMAIL PROTECTED
Can I give weights on different indexes when I search against multiple
indexes. The final score of a document should be a linear combination of
the weights on each index and the individual score for that index. Is
this possible in Lucene?
Thanks
Ravi.
...soon?
Thanks,
--
Ravi/
PS: The title of the thread in the previous discussion was
'Problem with search results'
Ravi(ndra) Rao
AlterPoint Inc.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
'.
The program successfully searches the index for a document containing
this field. However, I'm not very happy with the solution because it
will be cumbersome to set up general queries this way. Is there
a better way?
Many thanks,
--
Ravi/
import org.apache.lucene.document.Field;
import
Optimizing index...
2625 total milliseconds
And in my configuration.jsp I have below entry:
String indexLocation = /DarrenWebsite/Lucene/Index;
That is all I did to implement search on .html, .txt
file and now how do I implement search on .pdf, .doc, .jsp
etc. ??
Thanks Regards,
Ravi
this will help You
Regards
Ravi
- Original Message -
From: Suneetha Rao [EMAIL PROTECTED]
Date: Sat, 05 Oct 2002 13:01:48 +0530
To: Lucene Users List [EMAIL PROTECTED]
Subject: Re: Is Like Search Possible ?
Dear Ravi,
Thanks for ur help but my problem is not solved yet
in this matter.
Best Regards
Ravi
--
__
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup
Free price comparison tool gives you the best prices and cash back!
http://www.bestbuyfinder.com/download.htm
the search for toAddress.
Hope this will help you
Regards
Ravi
- Original Message -
From: Suneetha Rao [EMAIL PROTECTED]
Date: Sat, 05 Oct 2002 10:16:02 +0530
To: Lucene Users List [EMAIL PROTECTED]
Subject: Is Like Search Possible ?
Hi,
I've used lucene and indexed the whole
/lucene/docs/gettingstarted.html
Hope this will help you
Reagrds
Ravi
- Original Message -
From: ARJANG ASSADI [EMAIL PROTECTED]
Date: Tue, 24 Sep 2002 06:46:15 +
To: [EMAIL PROTECTED]
Subject: Xtreeme Newbie, trying to get demos to work
I am trying to run the Demo.
I couldnt
is producing result . But the url returned by the search in for local document in the
form of d:\tomcat\tomcat-jakarta\webapps\textdocs\xyz.htm
But i want url of my documents in the form of http://mywebsite:8080/textdocs/xyz.htm
How can i achieve this . Please help me in this matter.
Regards
Ravi
and summary as null . Later I found that it stores the
document path also and i can get that document path .
Can you please tell me how to store the document summary and url along with the
document in the index . It will be nice of you.
Regards
Ravi
- Original Message -
From: Stone, Timothy
am searching the application . I am getting no result . What
could be the reason of this. Is there any need to add entry in index. if yes how . Pls
help me out . If any one has any saple application It would be very nice to help me
with the code.
Regards
Ravi
36 matches
Mail list logo