Search problems

2005-10-27 Thread Sharma, Siddharth
Hi My index has 4 keyword fields and one unindexed field. I want to search by the 4 keyword fields and return the one unindexed field. I can iterate over the documents via Luke. But when I search for the same values that I see via Luke, it does not find the document. Out of the 4 fields, 2 are a

RE: Search problems

2005-10-28 Thread Sharma, Siddharth
I figured out the problem when I copied the document from the clipboard. It had trailing spaces. After I changed the database query to have an ltrim(rtrim( for each query, prior to indexing, its fine now. -Original Message- From: Sharma, Siddharth Sent: Thursday, October 27, 2005 4:35

StandardAnalyzer and thread safety

2005-11-01 Thread Sharma, Siddharth
Is using a QueryParser to parse a query using the same, single instance of Analyzer thread-safe? Or should I create a new Analyzer each time? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PR

JDK version with lucene 1.4.3

2005-11-02 Thread Sharma, Siddharth
I have downloaded Lucene 1.4.3 I am trying to narrow down on the JRE version to use. We have the flexibility to use 1.3.1 up. Which JVM will be the best for running Lucene? I saw a note on the FAQ that said that Lucene will run on 1.3.1 but will require 1.4 to compile. Why would anyone want to com

RE: lucene jar and war

2005-11-02 Thread Sharma, Siddharth
Place the lucene jar file in the WEB-INF/lib directory of your web application prior to creating its war. If your ISP inspects the war and removes all jar files within it, then I suppose you might just have to place all the lucene classes under WEB-INF/classes of your web application as 'loose cla

Is Lucene right for me?

2005-10-08 Thread Sharma, Siddharth
Hi I am complete newbie to Lucene. In fact I'm not even a search guy. I looked up terms such as stemming just yesterday. So this is going to be so much fun ;) Here's the problem I am trying to solve: I work in the B2B space at Staples (an office supplies company in the US). We sell office products

RE: Is Lucene right for me?

2005-10-10 Thread Sharma, Siddharth
Hoss Thanks for the reply. The posting was an excellent write-up and helped me visualize my problem domain and solution better. I like the idea about storing filter information in the contract index indexed by company. It might work in my case. I am not sure if I understand the BitSet solution t

One index or 2 indices

2005-10-11 Thread Sharma, Siddharth
Hiya Given that I have two high level business entities, catalog (containing product information) and contract (containing filter criteria about which products are available for sale and which are not), what is a better approach? 1. To have two different indices and query them separately. OR 2. H

Too many clauses

2005-10-17 Thread Sharma, Siddharth
Query: caught a class org.apache.lucene.queryParser.ParseException with message: Too many boolean clauses I realize why this is happening (the 1024 clauses limit for BooleanQuery). My question is more design related. During customer registration, the customer defines a set of skus/products that

RE: Too many clauses

2005-10-17 Thread Sharma, Siddharth
se the max clause count. //Setting the clause Count BooleanQuery.setMaxClauseCount(int); Can use maxint or some number smaller.. When I set this high, I have had to set the java pool higher for memory as well. Tom -Original Message----- From: Sharma, Siddharth [mailto:[EMAIL PROTECTED] Se

RE: Too many clauses

2005-10-19 Thread Sharma, Siddharth
Thanks Chris I haven't tried it yet, but I think I understand your idea now (after 24 hours, man I'm slow on the uptake;) I'll try it today. -Sid -Original Message- From: Chris Hostetter [mailto:[EMAIL PROTECTED] Sent: Monday, October 17, 2005 5:05 PM To: java-user@lucene.apache.org Sub

RangeFilter source

2005-10-20 Thread Sharma, Siddharth
I downloaded the source code of 1.4.3 but did not find the source of RangeFilter. I could not find it in the sandbox either? RangeFilter, where art thou? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

Thread safety question

2005-10-25 Thread Sharma, Siddharth
Hi I have an instance (each) of IndexSearcher and StandardAnalyzer housed in a Singleton and I intend to use this one single instance (of Searcher and Analyzer) for multiple concurrent search requests. I vaguely remember reading that I (as a client) do not have to synchronize. Lucene internals take