Re: Lucene Result

2011-06-07 Thread Pranav goyal
There is one field DocId which I am storing as well as indexing and DocId and it's value is 0341 But the search results are giving me 0 results. Is there any error in my code for searching? StandardAnalyzer analyzer = new StandardAnalyzer(Version.LUCENE_31); IndexSearcher searc

Re: Lucene Result

2011-06-07 Thread Pranav goyal
Thanks Anshum On Wed, Jun 8, 2011 at 11:40 AM, Anshum wrote: > Hi Pranav, > The result would be a list of document ids, which can be used to retrieve > the document (Using an indexreader). Once you have the document, you could > fetch 'ANY' of the 'STORED' fields from the index for your purpose.

Re: Lucene Result

2011-06-07 Thread Anshum
Hi Pranav, The result would be a list of document ids, which can be used to retrieve the document (Using an indexreader). Once you have the document, you could fetch 'ANY' of the 'STORED' fields from the index for your purpose. Directly, you'd not receive either the key field or any other field fro

Lucene Result

2011-06-07 Thread Pranav goyal
Hi all, I am getting confused in this thing, Let say I make a lucene index using a document having a key field (which I am storing as well as indexing) and rest of my fields I am just indexing. When I make some query what would be my result? Will it be the field which I am storing or it can be a

Solr/Lucene 3.1.0 | distributed search | java.net.SocketException: Connection reset

2011-06-07 Thread Johannes Goll
Hi, sporadically when using distributed searches on a single box (18 cores) using Solr/Lucene 3.1.0 via jetty I am getting a 'java.net.SocketException: Connection reset' exceptions (full stack trace below). The maximum number of shard arguments is 120. The StatsComponent is set to true with a stat

Re: Possible Bug when add wildcard to search following an exclamation mark

2011-06-07 Thread Paul Taylor
On 07/06/2011 10:16, Robert Muir wrote: On Mon, Jun 6, 2011 at 11:46 AM, Paul Taylor wrote: If I do a search which consists of escaped ending exclamation marks it all works okay: (ahhh\!\!\!) and find the desired match but if there is a wildcard at the end, it will not find any matches (a

RE: RAMDirectory doesn't win over FSDirectory all the time, why?

2011-06-07 Thread zhoucheng2008
Makes sense. Thanks -Original Message- From: Toke Eskildsen [mailto:t...@statsbiblioteket.dk] Sent: Tuesday, June 07, 2011 4:28 PM To: java-user@lucene.apache.org Subject: Re: RAMDirectory doesn't win over FSDirectory all the time, why? On Mon, 2011-06-06 at 15:29 +0200, zhoucheng2008 wr

Re: term frequency on a particular query

2011-06-07 Thread Ian Lea
http://www.gossamer-threads.com/lists/lucene/java-user/86299 looks relevant. -- Ian. On Tue, Jun 7, 2011 at 10:05 AM, G.Long wrote: > Hi :) > > In my index, there are documents like : > > doc { question: 1, response: 1, word: excellent } > doc { question 1, response: 1, word: great } > doc { q

Re: Possible Bug when add wildcard to search following an exclamation mark

2011-06-07 Thread Robert Muir
On Mon, Jun 6, 2011 at 11:46 AM, Paul Taylor wrote: > If I do a search which consists of escaped ending exclamation marks it all > works okay: > (ahhh\!\!\!) > > and find the desired match > > but if there is a wildcard at the end, it will not find any matches > (ahhh\!\!\!*) > > I cant se

term frequency on a particular query

2011-06-07 Thread G.Long
Hi :) In my index, there are documents like : doc { question: 1, response: 1, word: excellent } doc { question 1, response: 1, word: great } doc { question 1, response: 2, word: bad } doc { question 1, response: 2, word: excellent} doc { question 2, response: 1, word: car} doc { question 2, resp

Re: Possible Bug when add wildcard to search following an exclamation mark

2011-06-07 Thread Ian Lea
What analyzer are you using? Same at indexing and search time? What version of lucene? What does Luke show as being indexed? -- Ian. On Mon, Jun 6, 2011 at 4:46 PM, Paul Taylor wrote: > If I do a search which consists of escaped ending exclamation marks it all > works okay: > (ahhh\!\!\!

Re: Lucene Indexing

2011-06-07 Thread bmdakshinamur...@gmail.com
If i understand the requirement correctly, contract is one document in your system which in turn contains some *'n*' fields. Contract_ID is the key in all the documents(Structures). Contract_ID is the only field you want to retrieve no matter on what field you search for. If this is the case, store

Re: RAMDirectory doesn't win over FSDirectory all the time, why?

2011-06-07 Thread Toke Eskildsen
On Mon, 2011-06-06 at 15:29 +0200, zhoucheng2008 wrote: > I read the lucene in action book and just tested the > FSversusRAMDirectoryTest.java with the following uncommented: > [...]Here is the output: > > RAMDirectory Time: 805 ms > > FSDirectory Time : 728 ms This is the code, right? http://ja