Re: Lucene Searching

2011-06-23 Thread digy digy
Maybe, you need queryParser.setLowercaseExpandedTerms(false) DIGY On Thu, Jun 23, 2011 at 9:37 AM, Pranav goyal wrote: > I tried it and it worked, although it's having one peculiarity. > > When I search for Item_1 : it gives me 110 hits but when I use *Item_1* it > gives me 0 hits. What mistake

Re: Lucene Searching

2011-06-23 Thread Ian Lea
Looks OK to me. You are searching on Item without adding any docs with that field, you could use writer.updateDocument() rather than delete and add, but those are just quibbles and don't explain your searching problem. Having done most of the hard work, why don't you adapt the code you posted int

Re: Lucene Searching

2011-06-23 Thread Pranav goyal
Here's the code which I am implementing (Indexing and Searching codes are in different files) Indexing Part : d=new Document(); File indexDir = new File("index-dir"); KeywordAnalyzer analyzer = new KeywordAnalyzer(); IndexWriterConfig conf = new IndexWriterConfig

Re: Lucene Searching

2011-06-23 Thread Ian Lea
What exactly is "it"? Show us what you are indexing, how, and how you are building the query and we may be able to help. Whenever I see a report of incorrect results on a Mixed Case field I always suspect that the term is being lowercased on indexing and not at searching, or vice versa. -- Ian.

Re: Lucene Searching

2011-06-22 Thread Pranav goyal
I tried it and it worked, although it's having one peculiarity. When I search for Item_1 : it gives me 110 hits but when I use *Item_1* it gives me 0 hits. What mistake am I doing here? Also when I search for *341* it is giving me correct results i.e 0341-000-000-DR but it's not working for a

Re: Lucene Searching

2011-06-22 Thread Ian Lea
What does Luke show as being indexed for that field? Other useful tips at http://wiki.apache.org/lucene-java/LuceneFAQ#Why_am_I_getting_no_hits_.2BAC8_incorrect_hits.3F If that field is numeric you could use a NumericField - gets rid of problems with leading zeros. If by "I just want to get eve

Re: Lucene Searching

2011-06-22 Thread Pranav goyal
I can always use * , ? But here I am not talking of this. I just want to get everything which has 341 in it. How to do it without * or ? On Wed, Jun 22, 2011 at 1:00 PM, Pranav goyal wrote: > Hi all, > > I am in a fix regarding lucene search. I know a little bit about lucene and > have successfu

Lucene Searching

2011-06-22 Thread Pranav goyal
Hi all, I am in a fix regarding lucene search. I know a little bit about lucene and have successfully created index and searched a lot of queries on that. My main worry is that whenever I search for let say "000" it doesn't give me any result while if I seach for "0341" it'll give me a hit. Ev

Re: Lucene searching across documents

2009-04-11 Thread Erick Erickson
http://people.apache.org/~hossman/#threadhijack Thread Hijacking on Mailing Lists When starting a new discussion on a mailing list, please do not reply to an existing message, instead start a fresh email. Even if you change the subject line of yo

Re: Lucene searching across documents

2009-04-08 Thread Andy
Hello all, I'm trying to implement a vector space model using lucene. I need to have a file (or on memory) with TF/IDF weight of each term in each document. (in fact that is a matrix with documents presented as vectors, in which the elements of each vector is the TF weight ...) Please Please

RE: Lucene searching across documents

2009-04-08 Thread Steven A Rowe
Hi Dan, My guess, though you didn't directly say so, is that you're representing each sentence/"line" as a separate Lucene document. To directly answer your question about whether inter-document relations (like database joins) are queryable in Lucene, I don't think so, other than performing mu

Lucene searching across documents

2009-04-08 Thread Dan Scrima
So I have a requirement where I have a directory filled with xml files. I wrote a parser to parse these files, and index all of the xml attributes and properties into documents. An example of one of these documents is below. I'm parsing sentences into words, and tagging the sentences based on certa

RE: The performance of lucene searching(web entironment) test

2008-06-13 Thread lutan
Very grateful for Toke Eskildsen of attention my questions. > Date: Fri, 13 Jun 2008 08:59:27 +0200> From: [EMAIL PROTECTED]> Subject: RE: > The performance of lucene searching(web entironment) test> To: > java-user@lucene.apache.org> > On Wed, 2008-06-11 at 18:56 +0800

RE: The performance of lucene searching(web entironment) test

2008-06-13 Thread Toke Eskildsen
On Wed, 2008-06-11 at 18:56 +0800, lutan wrote: > Yes ,I have test again with same entironment but to use singleton > IndexSearcher.the performance has increased. there 100 concurrent > user request use different keyword ,and get 60 TPS(2 TPS before). > and now the bottleneck seem to be CPU,and

RE: The performance of lucene searching(web entironment) test

2008-06-11 Thread lutan
Thanks for you replay!> Date: Wed, 11 Jun 2008 09:19:46 +0200> From: [EMAIL PROTECTED]> Subject: RE: The performance of lucene searching(web entironment) test> To: java-user@lucene.apache.org> > On Wed, 2008-06-11 at 00:17 +0800, lutan wrote:> > In my test case , I st

RE: The performance of lucene searching(web entironment) test

2008-06-11 Thread Toke Eskildsen
On Wed, 2008-06-11 at 00:17 +0800, lutan wrote: > In my test case , I start loadrunner jsut test for 5 minute,and the response > growth slowly.the TPS(transactions per second) seems stoped at 10 finally. That's without reusing the searcher, right? In that case the increased rate must be attribute

RE: The performance of lucene searching(web entironment) test

2008-06-10 Thread lutan
index size..? > Date: Tue, 10 Jun 2008 16:34:17 +0200> From: [EMAIL PROTECTED]> Subject: Re: > The performance of lucene searching(web entironment) test> To: > java-user@lucene.apache.org> > On Tue, 2008-06-10 at 21:11 +0800, lutan > wrote:> > [A lot of text wit

Re: The performance of lucene searching(web entironment) test

2008-06-10 Thread Toke Eskildsen
On Tue, 2008-06-10 at 21:11 +0800, lutan wrote: > [A lot of text with code and no newlines, making it very hard to read] In your test you're reusing the searcher. For each search your program performs, you will see faster response times, until the searcher is fully warmed. If your production-syst

The performance of lucene searching(web entironment) test

2008-06-10 Thread lutan
I have recently done some tests on lucene. I do not know whether the test results normal. hd entironment:Intel(R) Xeon(R) CPU 5110 @ 1.60GHz4GB ram sw entironment:centOS4.6+sun jdk 1.5+jboss+lucene2.3.2+je-analysis(a chinese analysis)there are 10 million+ documents which total about 3GB test

Re: Lucene searching class

2007-10-25 Thread poojasreejith
p.org/tech/lucene.asp > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this

Re: Lucene searching class

2007-10-25 Thread Steven Rowe
Hi Pooja, poojasreejith wrote: > I am using lucene2.2.0 for my application. I have a searcher.java class. > The problem I am facing is, it is not supporting > > Query query = QueryParser.parse(q, "contents",new StandardAnalyzer()); it > shows error; the method parse in the type QueryParser is

Re: Lucene searching class

2007-10-25 Thread Karl Wettin
25 okt 2007 kl. 19.38 skrev poojasreejith: hi, I am using lucene2.2.0 for my application. I have a searcher.java class. The problem I am facing is, it is not supporting Query query = QueryParser.parse(q, "contents",new StandardAnalyzer ()); it shows error; the method parse in the type

Lucene searching class

2007-10-25 Thread poojasreejith
he (String, String ,StandardAnalyzer). Can anyone help me in this? Pooja -- View this message in context: http://www.nabble.com/Lucene-searching--class-tf4692438.html#a13412082 Sent from the Lucene - Java Users mailing list archive at

Re: Lucene searching algorithm

2006-10-09 Thread Grant Ingersoll
Hi Michael, I think there are a number of good resources on this: 1. http://lucene.apache.org/java/scoring.html covers the basics of searching. The bottom has some pseudo code as well. 2. Lucene In Action 3. Search this list and other places for information on the Vector Space Model.

Lucene searching algorithm

2006-10-08 Thread Michael Chan
Hi, Does anyone know where I can find descriptions of Lucene's searching algorithm, besides the lecture at University of Pisa 2004? Has it been published? I'm trying to find a reference to the algorithm. Thanks, Michael - To un