Any idea ?

2008-04-17 Thread Bhavin Pandya
) at 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

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: java-user@lucene.apache.org Sent: Tuesday, April

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: 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: java-user@lucene.apache.org Sent: Monday, September 17, 2007 8:34 PM Subject: Re: How to tokenize with comma

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.

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: java-user@lucene.apache.org Sent: Wednesday, August 08, 2007 3:17 PM Subject: error

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 show category count with results?

2007-07-26 Thread Bhavin Pandya
+ 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

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
.. ??? Note: In this case, i can not handle duplicate records at index time... Thanks. Bhavin pandya - Original Message - From: Erick Erickson [EMAIL PROTECTED] To: java-user@lucene.apache.org; Bhavin Pandya [EMAIL PROTECTED] Sent: Thursday, July 19, 2007 7:21 PM Subject: Re: Where exact

Re: Creating parser query by hand

2007-06-01 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: java-user@lucene.apache.org Sent: Friday, June 01, 2007 11:41 AM Subject: Re: Creating parser query by hand

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

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: Indexing HTML pages and phrases

2007-03-14 Thread Bhavin Pandya
- Original Message - From: Maryam [EMAIL PROTECTED] To: java-user@lucene.apache.org 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

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: java-user@lucene.apache.org 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

Re: Complete field search

2007-03-13 Thread Bhavin Pandya
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: java-user@lucene.apache.org Sent: Tuesday, March 13, 2007 3:48 PM Subject: Complete field

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: java-user@lucene.apache.org Sent: Tuesday, February 13, 2007 11:04 AM Subject: hi compile error

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

IndexReader.docFreq

2007-01-17 Thread Bhavin Pandya
zero... Any pointer - Bhavin pandya

Re: IndexReader.docFreq

2007-01-17 Thread Bhavin Pandya
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 confused using IndexReader.docFreq... I am using lucene 1.9 my code

Re: How to open IndexWriter to append document?

2007-01-15 Thread Bhavin Pandya
) - Bhavin pandya - Original Message - From: David [EMAIL PROTECTED] To: java-user@lucene.apache.org 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

How to top ups recent documents

2007-01-08 Thread Bhavin Pandya
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: 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: java-user@lucene.apache.org Sent: Monday, December 04, 2006 2:15 PM Subject: Multiple

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: Re: Multiple character wildcard search

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: 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: java-user@lucene.apache.org; Bhavin Pandya [EMAIL PROTECTED] Sent: Tuesday, November 21, 2006 8:58 PM

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
As per your suggestions, I can do something like this... TermEnum enum = termDocs(new Term(FLAG,true) But it will return enumeration of all the document which is in index...But i want enumeration of all the document which is relevant to nokia... How to . . ? Thanks - Bhavin pandya

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

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: java-user@lucene.apache.org; [EMAIL PROTECTED] Sent: Monday, October 30, 2006 7:38 PM

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 - To unsubscribe, e

How to fire a query ?

2006-10-09 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: 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: java-user@lucene.apache.org

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: java-user@lucene.apache.org Sent: Wednesday, September 27, 2006 2:29 PM Subject: Can Lucene Index 50MB xml

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

ChainedFilter

2006-09-23 Thread Bhavin Pandya
) 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
... - Bhavin pandya - Original Message - From: Bhavin Pandya [EMAIL PROTECTED] To: java-user@lucene.apache.org 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 problem

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

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 dont