Fastest way to perform 'like' searches

2007-08-08 Thread Ard Schrijvers
Hello, I need to do a search that is capable to also match on substrings, for example: *oo bar the qu* should find a document that contains 'foo bar the quux' and 'foo bar the qux'. Now, should I index the text as UN_TOKENIZED also, and do a WildCardQuery on this field? Obviously, then every

configuration of lucene with jsp

2007-08-08 Thread Neha Modi
Hi. I am new to jsp and I have to integrate lucene with a jsp web application. I am facing problems in configuring lucene in my web application. Can someone please provide me with the correct configuration and installations steps to do the same? Regards, Neha Modi The information in

error while configuring lucene

2007-08-08 Thread Neha Modi
 Hi, I am getting the following error in my page: Only a type can be imported. org.apache.lucene.analysis.standard.StandardAnalyzer resolves to a package. I am trying to configure lucene with my web application. Please help Regards, Neha Modi The information in this e-mail is the

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

What is the contrib/surround/src/java purpose

2007-08-08 Thread Ard Schrijvers
Hello, without having to dive into the code, I was hoping somebody could tell me what this contrib block does? I can't seem to find any documentation or relevant hits when searching for it, Thanks in advance, Regards Ard -

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

Re: Fastest way to perform 'like' searches

2007-08-08 Thread Daniel Naber
On Wednesday 08 August 2007 10:28, Ard Schrijvers wrote: Does anybody know a more efficient way? A PhraseQuery might get me somewhere, isn't? No, you need to use MultiPhraseQuery, and you will need to first epxand the terms with the * yourself (e.g. using term enumeration). as a phrase is

term location in doc

2007-08-08 Thread Kevin Chen
I can see that termpositions gives an enum with all positions of term in document. I want to do the opposite. Given a position , can I query the document for term at that position in document? - Ready for the edge of your seat? Check out tonight's top

Re: term location in doc

2007-08-08 Thread Grant Ingersoll
If you like term vectors, using the latest Trunk version of Lucene and are willing to be a guinea pig. :-) See https:// issues.apache.org/jira/browse/LUCENE-975 Of course, you can always reanalyze the document as well and keep track of the positions as you go. Maybe take a look at how