Multi valued fields

2006-11-03 Thread Seeta Somagani
Hi all, Our company has a set of assets and we use meta-data (XML files) to describe each asset. My job is to index and search over the meta-data associated with the assets. The interesting aspect of my problem is that an asset can have more than one meta-data file associated with it, depending

org.apache.lucene.misc package

2007-02-15 Thread Seeta Somagani
Hi, I'm trying to look at the source of the classes in org.apache.lucene.misc. I couldn't find the package in the latest nightly build. Where should I be looking? Thank you, Seeta Somagani

RE: Date Searches

2007-02-26 Thread Seeta Somagani
This might help. http://www.catb.org/~esr/faqs/smart-questions.html -Original Message- From: Kainth, Sachin [mailto:[EMAIL PROTECTED] Sent: Monday, February 26, 2007 10:17 AM To: java-user@lucene.apache.org Subject: Date Searches Anybody? >

RangeQuery or BooleanQuery?

2006-02-28 Thread Seeta Somagani
y); But, when I enter the query - id: [104 TO 200] content: "Marbella EspaƱa" it's just returning me all the results while ignoring the range. I'm getting the same result, no matter which permutations of phraseQueries, BooleanQueries and TermQueries I'm entering.

RE: RangeQuery or BooleanQuery?

2006-02-28 Thread Seeta Somagani
Please ignore the ContextQueryParser... I dumped that and switched back to the QueryParser which still gives me the same result. Thanks. Seeta Somagani -Original Message- From: Seeta Somagani [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 28, 2006 10:54 AM To: java-user

RE: RangeQuery or BooleanQuery?

2006-02-28 Thread Seeta Somagani
Hoss, Your observation about the spaces seems very likely. I hence, removed the spaces, padded the numbers and also tried using the RangeFilter, but still I got the same result. Upon closer inspection of my code, I found that I was tokenizing the "id" field, which was rendering that field illeg

Inside a Boolean Query

2006-02-28 Thread Seeta Somagani
Hi, I need to return the context of the terms along with the results. The approach that I'm using is to 1) detect what kind of query it is, 2) extract the terms of the query, 3) fetch the context of the individual terms, and 4) finally join them depending on the

RE: Inside a Boolean Query

2006-02-28 Thread Seeta Somagani
Thanks Yonik, there they are -Original Message- From: Yonik Seeley [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 28, 2006 4:59 PM To: java-user@lucene.apache.org Subject: Re: Inside a Boolean Query On 2/28/06, Seeta Somagani <[EMAIL PROTECTED]> wrote: > Is there a way t

Offsets

2006-03-01 Thread Seeta Somagani
Is there a way to get the startOffset and endOffset if I know the termPosition in the field?

RE: Accented characters problem

2006-03-02 Thread Seeta Somagani
When I had this problem, I found out that the characters that I'm entering were in UTF-8 format and java converts numbers to a cp1252 encoding. I took care of this using xml.getBytes("UTF-8") for writing and similarly new String(buffer,0,bytes_read,"UTF8") for reading. This solved my problem.

RE: "filtering" using RangeFilter class

2006-03-03 Thread Seeta Somagani
That would most likely be the result of your range query expanding to more than BooleanQuery.getMaxClauseCount(); Use BooleanQuery.setMaxClauseCount(int) to set it to a higher range -Original Message- From: Urvashi Gadi [mailto:[EMAIL PROTECTED] Sent: Friday, March 03, 2006 3:37 PM To: ja

Native code compilation

2006-03-23 Thread Seeta Somagani
Hi all, Has anyone tried to compile their Lucene applications into native code? Mine works fine in a VM but the call to search() on IndexSearcher is crashing the application, after I compile it into native code. There is apparently no problem in instantiating an IndexSearcher though. I tried this

RE: Native code compilation

2006-03-23 Thread Seeta Somagani
code compilation Native code There is a C++ port called CLucene, if that suits you more than coffee beans... Otis - Original Message From: Seeta Somagani <[EMAIL PROTECTED]> To: java-user@lucene.apache.org Sent: Thursday, March 23, 2006 4:47:33 PM Subject: Native code compilati

fieldNorm

2006-06-08 Thread Seeta Somagani
Hi, My simple search application is returning hits ordered by the default relevance. But, I noticed that when for example searched for "what", the first hit has considerably lesser occurrences of the term "what" than those that follow. When I viewed the explanation for each document, all the value

Null field values

2006-06-30 Thread Seeta Somagani
Hi, I indexed some XML files using Lucene. When I open up the index using Luke, I can see that all the fields are stored correctly in the index. But, when I try to grab the fields from the hits, after searching, some of the values are being returned as null. Any suggestions about what might be

RE: Null field values

2006-06-30 Thread Seeta Somagani
Hi Erick, The fields that are missing are sort of primary keys and they exist in all the documents (including those that were returned in my search results) when I browsed through the index using Luke. And the field names are exactly the same all in the same case. I never get the three field value

RE: Null field values

2006-07-05 Thread Seeta Somagani
I figured that out. I was opening up a different, but similar, index. That was made evident when I printed out the document. Thanks so much, Seeta -Original Message- From: Erick Erickson [mailto:[EMAIL PROTECTED] Sent: Saturday, July 01, 2006 8:56 AM To: java-user@lucene.apache.org Subjec

Matched part of query

2006-07-26 Thread Seeta Somagani
Hi all, Is there a way to return with a hit, the part of the query that matched in the corresponding document? I need to return combinations of documents that together contain the query or a relatively large part of the query. Thanks, Seeta --