Re: Document not searchable after IndexWrite.updateDocument

2013-09-18 Thread Sanket Paranjape
JSON field). - Index the new instance Uwe - Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de -Original Message----- From: Sanket Paranjape [mailto:sanket.paranjape.mailingl...@gmail.com] Sent: Wednesday, September 18, 2013 2:51 PM To:

Document not searchable after IndexWrite.updateDocument

2013-09-18 Thread Sanket Paranjape
Hi, I wrote a simple code to update a lucene document with new values. Code Snippet: Term term = new Term("PRODUCT_CODE", productCode); TermQuery query = new TermQuery(term); TopDocs productDoc = this.searcher.search(query, 1); int docNum = scoreDoc.doc; Document doc = searcher.

Index Field with IntField and RangeQuery with LongRange

2013-08-23 Thread Sanket Paranjape
I created a index with IntField but while querying I create a NumericRangeQuery.newLongRange(...) (by mistake ofcourse). I was not getting any products and I had a hard time finding the issue. Should this be thrown as a exception so that user knows what the issue is. Something like type mismat

Re: Lucene 4 - Faceted Search with Sorting

2013-08-01 Thread Sanket Paranjape
m already. Shai On Thu, Aug 1, 2013 at 7:46 PM, Sanket Paranjape < sanket.paranjape.mailingl...@gmail.com> wrote: I am trying to move from lucene 2.4 to 4.4. I had used bobo-browse for faceting in 2.4. I used below code (from Lucene examples) to query documents and get facets.

Lucene 4 - Faceted Search with Sorting

2013-08-01 Thread Sanket Paranjape
I am trying to move from lucene 2.4 to 4.4. I had used bobo-browse for faceting in 2.4. I used below code (from Lucene examples) to query documents and get facets. List categories = new ArrayList(); categories.add(new CountFacetRequest(new CategoryPath("CATEGORY_PATH", '/'), 10)); Fac