Re: Why use RMI search very slow! when have 13 TermQuery! Return cost 7500 ms .

2007-06-12 Thread Chris Hostetter
: I am use RMI search two server date! When I use one TermQuery return : 30ms (very good)! But when I use booleanQuery add tow termQuery return : must 150 ms £º£¨ : : And three is 250 ms? My query have 13 TermQuery! Return cost 7500 ms . : : How can I do it quick! Use ICE(Internet Communications E

Re: QueryParser stripping special char

2007-06-12 Thread Chris Hostetter
1) the API you are using indicates you are using a fairly old version of Lucene ... I strongly urge you to upgrade, as there have been many improvements and bug fixes ... three have also beeen many methods deprecated and removed, if you start using an old version now (with it's old methods) it wil

Re: DBSight: Using Java, not Velocity

2007-06-12 Thread Chris Hostetter
This question would probably be better suited for hte dbsight forums... http://www.dbsight.net/?q=forum : Is anyone using DBSight to index a database? If so, is there a way to : just implement some Java code within my application to do a search, -Hoss --

Re: Search with AND by default

2007-06-12 Thread Frank Schima
Erick Erickson wrote: > > QueryParser.setDefaultOperator(QueryParser.Operator.AND). > That works. Thanks! -- View this message in context: http://www.nabble.com/Search-with-AND-by-default-tf3909294.html#a11086380 Sent from the Lucene - Java Users mailing list archive at Nabble.com. -

DBSight: Using Java, not Velocity

2007-06-12 Thread Lindsey Hess
Hi, Is anyone using DBSight to index a database? If so, is there a way to just implement some Java code within my application to do a search, rather than using the Velocity templates in a browser? I'd like to use the DBSight web-based admin tool to index my database, but then call my key

Re: Search with AND by default

2007-06-12 Thread Erick Erickson
QueryParser.setDefaultOperator(QueryParser.Operator.AND). Erick On 6/12/07, Frank Schima <[EMAIL PROTECTED]> wrote: I'm searching my index and if a user types multiple words (e.g. "two words") in the search field, I want both of the search terms to appear in the resulting hits, but it appears

Search with AND by default

2007-06-12 Thread Frank Schima
I'm searching my index and if a user types multiple words (e.g. "two words") in the search field, I want both of the search terms to appear in the resulting hits, but it appears to be doing an OR by default. How can I get an AND by default instead? Here's how i create my Search: QueryParser qp =

Re: FileNotFound Exception While Indexing

2007-06-12 Thread Nott
HI Thanks for the update This does not occur often. Happens occassionally. I'll further monitor and let you know if I find some thing If it happens will do the verbose output for IndexWriter.setInfoStream Regards Bharath On 6/12/07, Michael McCandless <[EMAIL PROTECTED]> wrote: This looks

Re: ERROR opening the Index - contact sysadmin!

2007-06-12 Thread Chris Hostetter
If you'd like to ask a question, please start a new thread with a descriptive subject, do not reply to an existing thread on another topic. : Date: Tue, 12 Jun 2007 15:49:25 +0530 : From: Harini Raghavan <[EMAIL PROTECTED]> : Subject: Re: ERROR opening the Index - contact sysadmin! : : Hi All, :

RE: ERROR opening the Index - contact sysadmin!

2007-06-12 Thread Lucene Help
I tried uninstalling lucene and installing it again. This time, after setting the CLASSPATH C:\lucene-2.1.0\lucene-core-2.1.0.jar;C:\lucene-2.1.0\lucene-demos-2.1.0.jar, I typed java org.apache.lucene.demo.IndexFiles C:\lucene-2.1.0\src into the commandline prompt. I got the following: Cann

Re: ERROR opening the Index - contact sysadmin!

2007-06-12 Thread Grant Ingersoll
It looks to me like your indexing did not take (although for some reason my mail reader is munging your line breaks so it is hard to tell for sure). I would make sure you have successfully indexed and then try to start the web app. To verify you index was created, you can use Luke (http:/

Re: FileNotFound Exception While Indexing

2007-06-12 Thread Michael McCandless
This looks like a rather serious error. It seems like that file has somehow gone missing in your index. On adding a given document, Lucene has flushed its buffered documents and is attempting to merge segments together when it finds that one of the segments that it thinks exists (_v3.cfs) and ne

Re: QueryParser stripping special char

2007-06-12 Thread Ozgur Yilmazel
Hi Harini; If you are already indexing phone numbers in a separate field, you could also consider indexing the area code as a separate field too. This might give better performance depending on the size of your index. Ozgur On 6/12/07, Harini Raghavan <[EMAIL PROTECTED]> wrote: Hi All, I am

Re: QueryParser stripping special char

2007-06-12 Thread Steven Rowe
Hi Harini, Harini Raghavan wrote: > I am trying to create a lucene query to search for companies based on > areacode. The phone no. is stored in the lucene index in the form of > '415-567-2323'. I need to create a query like +areaCode:"415-". But the > QueryParser is stripping off the hyphen(-). >

FileNotFound Exception While Indexing

2007-06-12 Thread Nott
Hi We run a batch job written on Java that reads a Oracle DB and creates a Lucene INDEX. We use Compass interface to do the index creation operations This is a scheduled job and this is a batch insert transaction job suddenly we are getting the following exception. I wnet through the forum and var

RE: ERROR opening the Index - contact sysadmin!

2007-06-12 Thread Lucene Help
I am using apache-tomcat 5.5.23 and lucene-2.1.0. At the command prompt, I typed, java org.apache.lucene.demo.IndexHTML - create -index C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\opt\lucene\index ..I then got the following: Usage: IndexHTML [-create] [-index ] I then copi

Re: ERROR opening the Index - contact sysadmin!

2007-06-12 Thread Grant Ingersoll
Can you tell us the steps you went through to get to this page? Thanks, Grant On Jun 12, 2007, at 3:10 AM, Lucene Help wrote: Hello,I just downloaded Lucene and tried running the demo. I seem to be okay up until I type in a query into the "Search Criteria" page and click on the "Search"

QueryParser stripping special char

2007-06-12 Thread Harini Raghavan
Hi All, I am trying to create a lucene query to search for companies based on areacode. The phone no. is stored in the lucene index in the form of '415-567-2323'. I need to create a query like +areaCode:"415-". But the QueryParser is stripping off the hyphen(-). Here is the code to create the qu

Re: ERROR opening the Index - contact sysadmin!

2007-06-12 Thread Harini Raghavan
Hi All, I am trying to create a lucene query to search for companies based on areacode. The phone no. is stored in the lucene index in the form of '415-567-2323'. I need to create a query like +areaCode:"415-". But the QueryParser is stripping off the hyphen(-). Here is the code to create the qu

Re: regarding range search

2007-06-12 Thread Mohammad Norouzi
Thanks Narednra and Daniel but it accepts only long, I found LUCENE-530 to support double and float etc. Have you seen it? https://issues.apache.org/jira/browse/LUCENE-530 another question is Do I have to use it while indexing? how about the index already created? -- Regards, Mohammad

Re: regarding range search

2007-06-12 Thread Narednra Singh Panwar
Use NumberTools.longToString() while storing it in to lucene index and use (double)NumberTools.stringToLong() while reading it from Lucene index. Hope this will solve your problem. Thanks Narendra On 6/12/07, Mohammad Norouzi <[EMAIL PROTECTED]> wrote: Hello consider a query like this patien

ERROR opening the Index - contact sysadmin!

2007-06-12 Thread Lucene Help
Hello,I just downloaded Lucene and tried running the demo. I seem to be okay up until I type in a query into the "Search Criteria" page and click on the "Search" button at the URL: http://localhost:8080/luceneweb/At this point I am at the URL http://localhost:8080/luceneweb/results.jsp?query=

Re: regarding range search

2007-06-12 Thread Daniel Noll
On Tuesday 12 June 2007 16:44:25 Mohammad Norouzi wrote: > Hello > consider a query like this > > patientResult:[8 TO 9] > > this returns correct documents but > > patientResult:[8 TO 10] > > return nothing. and also this range [0.1 TO 10] returns results like 11, > 10.8, 10.9 etc. > > is there an