Re: Minor issues with sample Web app

2006-11-05 Thread Otis Gospodnetic
I think this was already fixed after 2.0 release. The fix would be in the SVN trunk. Otis - Original Message From: David Halsted <[EMAIL PROTECTED]> To: java-user@lucene.apache.org Sent: Saturday, November 4, 2006 10:09:15 PM Subject: Minor issues with sample Web app I ran into a coup

Re: reg : document number

2006-11-05 Thread Jin Yiqing
I used to have this question too. My solution is use "searcher" to get the document then detele it. To do this you should know how to give a query that could get the exact one doc you wanted. Hope this could do some help to u. 2006/11/6, mukkamalla rama kumar <[EMAIL PROTECTED]>: Thanks for

Re: reg : document number

2006-11-05 Thread mukkamalla rama kumar
Thanks for your reply, Actually what my concern was that, I have a file repository, when files are added to this repository i would be updating the index by the corresponding document. But during deletion of the file in the file repository i have to delete the document from the

Re: Query question

2006-11-05 Thread jeff . richley
Chris, thank you so much for your help. I guess I was interpretting the score incorrectly. Wasn't getting it through this thick head, I'm rolling along now. You all have done a great job with this! > > : I know I am getting very close on this one but can't seem to get the > score > : above .306

Re: reg : document number

2006-11-05 Thread Erick Erickson
Do NOT rely on the Lucene document number. It changes periodically. As I understand it the general algorithm is that each doc gets an ID one greater than the current max doc ID at INDEX time. However, when you delete documents and optimize your index, the document IDs change. Simplistically, say y

reg : document number

2006-11-05 Thread mukkamalla rama kumar
Hi, How is this document number assigned to documents. Can i give my own document number. I would like to get the document number for a particular file that i added to an index. - Find out what India is talking a

Re: Query question

2006-11-05 Thread Chris Hostetter
: I know I am getting very close on this one but can't seem to get the score : above .306. My guess is that I need to do something different in my 1) you didn't setOmitNorms(true) 2) why do you care what the score is? .. you said you only wanted exact matches: if you don't tokenize, and you bui

Re: injecting fields looked up from DB at the runtime - Solr/Lucene question

2006-11-05 Thread Yonik Seeley
On 11/5/06, Vladimir Olenin <[EMAIL PROTECTED]> wrote: - when the Hits objects are returned from IndexSearcher (as a result of some search), 'inject' 'info' fields into the 'Hit' objects at runtime by looking the values up in the DB. The main purpose is to avoid storing 'info' fields in the in

Re: 2.0 and Tokenized versus UN_TOKENIZED

2006-11-05 Thread James Rhodes
Ahh. That makes sense and helps a lot. Thanks so much for the replies. I'm sure I'll have more noob questions later today. B On 11/5/06, Chris Hostetter <[EMAIL PROTECTED]> wrote: what Erick was saying is that if you use an Analyzer to build your queries, that Analyzer has no way of knowing

Re: 2.0 and Tokenized versus UN_TOKENIZED

2006-11-05 Thread Chris Hostetter
what Erick was saying is that if you use an Analyzer to build your queries, that Analyzer has no way of knowing that the city filed wasn't tokenized. your queries work when you tokenize city because the same analyzer is used at index time and at query time ... when you don't tokenize, no analyzer