NullPointerException while sorting on INT

2007-10-24 Thread Bhavin Pandya
at _auctionSearcher__jsp._jspService(_auctionSearcher__jsp.java:359) Same is working if i change "SoftField.INT" to "SortField.STRING" In index the field "CURRENT_BID" has no null value in any document I am using lucene 2.1. Thanks. Bhavin pandya

Re: NullPointerException while sorting on INT

2007-10-24 Thread Bhavin Pandya
Hi, I am getting NullPointerException while sorting on a field using SortField.INT same is working for SortField.STRING Sorry guys... I found my mistake... I was using wrong Types my data has FLOAT data I used SortField.AUTO and its working fine now. Thanks. Bhavin pandya

Re: Controlling index file name

2008-04-03 Thread Bhavin Pandya
I also faced same problem in past. But in my case the index size was not the issue so i maintained two folder "newindex" and "oldindex"... and swaping at every update. -Bhavin pandya - Original Message - From: "021336" <[EMAIL PROTECTED]> To: S

Any idea ?

2008-04-16 Thread Bhavin Pandya
com.caucho.server.TcpConnection.run(TcpConnection.java:139) at java.lang.Thread.run(Thread.java:534) I am using lucene 1.9 and j2sdk1.4.2_05. Thanks. Bhavin pandya

How to filter results below perticular score

2006-09-19 Thread Bhavin Pandya
Hi all, How to put limit in lucene that "dont return me any document which has score less than 0.25" Thanks. Bhavin pandya

ChainedFilter

2006-09-22 Thread Bhavin Pandya
two columns ( RANGEFIELD1 and RANGEFIELD2 ) on which i want to fire range. e.g give me all records which is between 20 and 30. so i have created two filter and passed it to chainedfilter... but its not working ...i dont know what i m missing is there any better way to implement this...? Thanks. Bhavin pandya

Re: ChainedFilter

2006-09-23 Thread Bhavin Pandya
s working... - Bhavin pandya - Original Message - From: "Bhavin Pandya" <[EMAIL PROTECTED]> To: Sent: Saturday, September 23, 2006 12:06 PM Subject: ChainedFilter Hi, I am using ChainedFilter and FilteredQuery together in order to remove RangeQuery from my code. the

How to remove duplicate records from result

2006-09-26 Thread Bhavin Pandya
Hi, I searched the index and i found say 1000 records but out of that 1000 records i want to filter duplicate records based on value of one field. is there any way except looping through whole Hit object ? Because it wont work when number of hit is too large... Thanks. Bhavin pandya

spell checker with lucene

2006-09-26 Thread Bhavin Pandya
Hi, Do anybody have idea for spell checker in java. I want to use with lucene...but which must work well for phrases also... -Bhavin pandya

Re: lock file of lucene

2006-09-27 Thread Bhavin Pandya
Hi jacky, Before you open IndexWriter object you can check whether lock file exists or not and if its available you can unlock it. Use IndexReader.isLocked and IndexReader.unlock. - Bhavin pandya - Original Message - From: "jacky" <[EMAIL PROTECTED]> To:

Re: Can Lucene Index 50MB xml file

2006-09-27 Thread Bhavin Pandya
Hi aslam, Here is the method you can set for very long content. IndexWriter's setMaxFieldLength. - Bhavin pandya - Original Message - From: "aslam bari" <[EMAIL PROTECTED]> To: Sent: Wednesday, September 27, 2006 2:29 PM Subject: Can Lucene Index 50MB xml file

How to fire a query ?

2006-10-08 Thread Bhavin Pandya
Hi guys, How to fire "digital camera" when someone fire "digital cam" .. ? Do i need to make manual list for such items and look up at search time or theree is any better way to do this... -Bhavin pandya

How to fire a query ?

2006-10-11 Thread Bhavin Pandya
Hi guys, How to fire "digital camera" when someone fire "digital cam" .. ? Do i need to make manual list for such items and look up at search time or theree is any better way to do this... -Bhavin pandya

Re: Lucene search priorities

2006-10-30 Thread Bhavin Pandya
Hi amit, You can give boost to query at search time... and you can boost to perticular field at index time - Bhavin pandya - Original Message - From: "Patrick Turcotte" <[EMAIL PROTECTED]> To: ; <[EMAIL PROTECTED]> Sent: Monday, October 30, 2006 7:38 PM Subj

how to boost recent doc

2006-11-06 Thread Bhavin Pandya
Hi guys, I want to boost recent documentsso that it top ups... what could be best strategy... - Bhavin pandya

how to boost recent document

2006-11-06 Thread Bhavin Pandya
Hi guys, How to boost recent documents ...so that it top ups... I mean what coulld be proper strategy... - Bhavin pandya

is there any way to find unique records ?

2006-11-21 Thread Bhavin Pandya
Hi, In lucene, is there any way to find only unique records from a single field ..? otherwise unnecessary i have to itereate through Hits and find out unique... plz help.. - Bhavin pandya

Re: is there any way to find unique records ?

2006-11-21 Thread Bhavin Pandya
index...But i want enumeration of all the document which is relevant to "nokia"... How to . . ? Thanks - Bhavin pandya - Original Message - From: "Erick Erickson" <[EMAIL PROTECTED]> To: ; "Bhavin Pandya" <[EMAIL PROTECTED]> Sent: Tuesday, November

Re: is there any way to find unique records ?

2006-11-22 Thread Bhavin Pandya
Hi Erick, Thanks for your help... I have successfully implemented using custom HitCollector - Bhavin pandya - Original Message - From: "Erick Erickson" <[EMAIL PROTECTED]> To: ; "Bhavin Pandya" <[EMAIL PROTECTED]> Sent: Tuesday, November 21, 2006 8

Re: How to set query time scoring

2006-11-26 Thread Bhavin Pandya
Hi sajid, As you already boost data at indexing time... You can boost query at search time... eg. If you are firing boolean query and phrasequery...you might need to boost phrasequery PhraseQuery pq = new PhraseQuery(); pq.setBoost(2.0f); Thanks. Bhavin pandya - Original Message

Re: Multiple character wildcard search

2006-12-04 Thread Bhavin Pandya
Babu, Use "PrefixQuery" and if you are looking for phrase also then "PhrasePrefixQuery"... check api for usage.... - Bhavin pandya - Original Message - From: "Eshwaramoorthy Babu" <[EMAIL PROTECTED]> To: Sent: Monday, December 04, 2006 2:15 PM

Re: Multiple character wildcard search

2006-12-04 Thread Bhavin Pandya
Dont use " * " in term Query query = new PrefixQuery(new Term("name","z")); - Bhavin pandya - Original Message - From: Eshwaramoorthy Babu To: java-user@lucene.apache.org ; Bhavin Pandya Sent: Monday, December 04, 2006 3:16 PM Subject: R

Re: Duplicates removal in search results

2006-12-14 Thread Bhavin Pandya
Hi qaz, You can remove duplicates at search time by writing your own HitCollector... - Bhavin pandya - Original Message - From: "qaz zaq" <[EMAIL PROTECTED]> To: Sent: Friday, December 15, 2006 1:01 AM Subject: Duplicates removal in search results How can i remov

Re: Search Suggestions

2006-12-14 Thread Bhavin Pandya
Hi simon, You can index the past query log for your search application and search the index the way you want... - Bhavin pandya - Original Message - From: "Simon Wistow" <[EMAIL PROTECTED]> To: "Lucene" Sent: Friday, December 15, 2006 3:52 AM Subject: S

How to top ups recent documents

2007-01-08 Thread Bhavin Pandya
ould take that "threshold value of score"... Do anybody have tried any other trick to achieve thissomething like boosting a recent documents at indexing time or with some different technique ....? Or where i am doing mistake ? Thanks. Bhavin pandya

Re: How to open IndexWriter to append document?

2007-01-15 Thread Bhavin Pandya
ctory)" - Bhavin pandya - Original Message - From: "David" <[EMAIL PROTECTED]> To: Sent: Monday, January 15, 2007 2:06 PM Subject: Re: How to open IndexWriter to append document? Thanks, I think I did not describe my problem exactly. What I want to do is: if th

IndexReader.docFreq

2007-01-17 Thread Bhavin Pandya
ds but "noofdoc" is showing zero... Any pointer - Bhavin pandya

Re: IndexReader.docFreq

2007-01-17 Thread Bhavin Pandya
term "friends" doesn't really exist in your inex - it's frequency is zero. Otis - Original Message From: Bhavin Pandya <[EMAIL PROTECTED]> To: java-user@lucene.apache.org Sent: Wednesday, January 17, 2007 6:16:38 AM Subject: IndexReader.docFreq Hi, I am c

lucene with dbx reader

2007-01-25 Thread Bhavin Pandya
Hi guys, Can i open outlook express mails ( dbx file) in java and index the mails using lucene.. ? Do anybody aware of such dbx reader ??? I tried one "mstos" but its not working properly... - Bhavin pandya

Re: hi compile error

2007-02-12 Thread Bhavin Pandya
Hi ashwin, I think there is error in your import statement... import org.apache.lucene.document.Field; Thanks. Bhavin pandya - Original Message - From: "ashwin kumar" <[EMAIL PROTECTED]> To: Sent: Tuesday, February 13, 2007 11:04 AM Subject: hi compile error h

Re: Complete field search

2007-03-13 Thread Bhavin Pandya
here you want only "world cup" as a result while on second field fire Phrase query as well as term query...Or only term query depends on your need. Thanks. Bhavin pandya - Original Message - From: "Kainth, Sachin" <[EMAIL PROTECTED]> To: Sent: Tuesday, March

Can we extract phrase from lucene index

2007-03-14 Thread Bhavin Pandya
Hello guys, I am using lucene 1.9 and i have 3GB of index. I know we can extract tokens from index easily but can we extract phrase ? Regards. Bhavin pandya - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: Can we extract phrase from lucene index

2007-03-14 Thread Bhavin Pandya
suggestions.. Thanks. Bhavin pandya - Original Message - From: "Erick Erickson" <[EMAIL PROTECTED]> To: ; "Bhavin Pandya" <[EMAIL PROTECTED]> Sent: Wednesday, March 14, 2007 6:29 PM Subject: Re: Can we extract phrase from lucene index Your problem st

Re: Indexing HTML pages and phrases

2007-03-14 Thread Bhavin Pandya
- Original Message - From: "Maryam" <[EMAIL PROTECTED]> To: Sent: Thursday, March 15, 2007 7:55 AM Subject: Indexing HTML pages and phrases Hi, I am wondering if we can index a phrase (not term) in Lucene? Also, I am not usre if it can index HTML pages? I need to have access to the

Re: Indexing HTML pages and phrases

2007-03-14 Thread Bhavin Pandya
/apache/lucene/demo/html/HTMLParser.html Thanks. Bhavin pandya - Original Message - From: "Maryam" <[EMAIL PROTECTED]> To: Sent: Thursday, March 15, 2007 7:55 AM Subject: Indexing HTML pages and phrases Hi, I am wondering if we can index a phrase (not term) in Lucene? Als

How to get list of all terms from given doc id?

2007-04-16 Thread Bhavin Pandya
Hi guys, In my existing index, i have not stored my index with TermVector.YES. is there any way to fetch all the terms from the given document id. Thanks. Bhavin pandya

Re: Creating parser query "by hand"

2007-05-31 Thread Bhavin Pandya
Hi vaasu, You can convert string query into lucene query using QueryParser class. Please check API. Thanks. Bhavin pandya - Original Message - From: "Vaasu" <[EMAIL PROTECTED]> To: Sent: Friday, June 01, 2007 11:41 AM Subject: Re: Creating parser query "by

Where exact score is getting calculate?

2007-07-19 Thread Bhavin Pandya
Hi, The score i am getting in DocCollector is raw score... which is not necessary between 0 and 1. Where lucene exactly calculating the final score...? Or what if i want final score in DocCollector ??? How to ??? Regards. Bhavin pandya

distinct query how to???

2007-07-19 Thread Bhavin Pandya
s ??? If yes please let me know where i am wrong.. ??? Note: In this case, i can not handle duplicate records at index time... Thanks. Bhavin pandya - Original Message - From: "Erick Erickson" <[EMAIL PROTECTED]> To: ; "Bhavin Pandya" <[EMAIL PROTECT

How to show category count with results?

2007-07-26 Thread Bhavin Pandya
id)).intValue(); value = value + 1; catcountmap.put(strcatid,new Integer(value)); } else catcountmap.put(strcatid,new Integer(1)); } is there any other better way to achieve this Thanks. Bhavin pandya

Re: error while configuring lucene

2007-08-08 Thread Bhavin Pandya
Hi neha, check whether lucene jar file is there in your classpath... You can keep jar file in WEB-INF/lib directory. Regards. Bhavin pandya - Original Message - From: "Neha Modi" <[EMAIL PROTECTED]> To: Sent: Wednesday, August 08, 2007 3:17 PM Subject: error w

How to implement cut of score ?

2007-08-08 Thread Bhavin Pandya
Hi guys, I want to cut of records which has score below a threshold. Without DocCollector. is there any way ??? Thanks. Bhavin pandya

How to tokenize with comma in standard tokenizer

2007-09-17 Thread Bhavin Pandya
Hi, Standard tokenizer works pretty well for me... but i found one problem with my usage... I want to tokenize..."TheRing6,Proposal6,GuyandGirl6" as a three saparate tokens.. while standard analyzer considering it as a one word because it has one digit in token. Expected three tokens: 1. ther

Re: How to tokenize with comma in standard tokenizer

2007-09-18 Thread Bhavin Pandya
Thanks mark. Take the comma out of: | <#P: ("_"|"-"|"/"|"."|",") > in the .jj file Its working for me... - Bhavin pandya - Original Message - From: "Mark Miller" <[EMAIL PROTECTED]> To: Sent: Monday, Septem

read past EOF

2006-08-30 Thread Bhavin Pandya
Hi, Can anyone have any idea that what are the reason to lucene index got corrupted ? I am running lucene 1.9 on unix machine...updating my index very frequentlyafter few updation it says "read past eof" I know this exception generally comes when one of the index got corrupted...but i don

Re: read past EOF

2006-08-30 Thread Bhavin Pandya
index. Its not multi-threaded application...so I am sure only one thread at a time accessing the index... Thanks. Bhavin - Original Message - From: "Michael McCandless" <[EMAIL PROTECTED]> To: Sent: Wednesday, August 30, 2006 4:07 PM Subject: Re: read past EOF Bhavin Pandy

Re: read past EOF

2006-08-30 Thread Bhavin Pandya
age - From: "Michael McCandless" <[EMAIL PROTECTED]> To: Sent: Thursday, August 31, 2006 8:01 AM Subject: Re: read past EOF Bhavin Pandya wrote: My guess is ..."One of my index is got corrupted so whenever I am trying to search the index or optimize the index or mer

Re: read past EOF

2006-09-08 Thread Bhavin Pandya
like "no space left"...but when i gone through all the log i tracked it sucessfully. Thanks for your help - Bhavin pandya - Original Message - From: "Michael McCandless" <[EMAIL PROTECTED]> To: Sent: Friday, September 01, 2006 5:07 PM Subject: R

range query

2006-09-13 Thread Bhavin Pandya
Hi, I am using lucene from last few months...I have question about the range query performance... Is there any alternative of range query or can i fire a range query on a small set of documents so that it can be less expensive... - Bhavin pandya