Re: Junit Tests for Indexer / Searcher

2005-06-21 Thread Erik Hatcher
On Jun 21, 2005, at 6:45 PM, Yousef Ourabi wrote: Hey All: So Obviously the lucene dev-team uses unit tests when building the api, but what are people's experiences with using unit tests to test that indexing is working, that searching is working. Are there pre-developed test-suits for such thi

Re: indexing values which might be null

2005-06-21 Thread Robert Newson
An approach I've used successfully is to add a separate field called 'empty' and include the names of other fields that are empty, e.g, empty: subject You can search for; +empty:subject for messages with empty (null) subjects. This approach means you don't need to think of a magical value

Junit Tests for Indexer / Searcher

2005-06-21 Thread Yousef Ourabi
Hey All: So Obviously the lucene dev-team uses unit tests when building the api, but what are people's experiences with using unit tests to test that indexing is working, that searching is working. Are there pre-developed test-suits for such things, so that I can make a change to a some search para

Re: index phrases

2005-06-21 Thread Sebastian Marius Kirsch
On Tue, Jun 21, 2005 at 02:06:31PM -0400, Erik Hatcher wrote: > A contribution with dependencies is fine, especially Apache ones. We > can put this code in the contrib area if you'd like to contribute > it. If so, please create a Bugzilla issue and attach the sources. Hi Erik, thanks for th

RE: First time user Question

2005-06-21 Thread Paddy Kalathur
If I use Field.Keyword("name", "Will Smith") to index the name, will I be able to search for it if a user searched for just "will" or "Smith" ? I think Field.Keyword does not tokenize and hence I should be able to sort it also . -Original Message- From: Otis Gospodnetic [mailto:[EMAIL P

Re: indexing values which might be null

2005-06-21 Thread Otis Gospodnetic
Hi George, A field value needs to be indexed if you want to sort by it - see http://www.lucenebook.com/search?query=index+for+sorting . As for null fields, you could use an empty string, or better yet, some "custom field value" that means "NULL" for your application. Otis --- George Abraham <[

Re: First time user Question

2005-06-21 Thread Otis Gospodnetic
Hi Paddy, Just make sure you index the sortable fields without tokenizing them. c.f. http://www.lucenebook.com/search?query=index+for+sorting Otis --- Paddy Kalathur <[EMAIL PROTECTED]> wrote: > I want Lucene to search as well as sort data . What I am not sure is, > how to > index my data so t

Looking for someone to develop Thai Lucene Analyzer

2005-06-21 Thread Randy Darling
Not sure if this is the appropriate forum to ask this. We are currently looking for an implementation of a Lucene Analyzer for the Thai language. We are looking to pay a developer/consultant for a Thai Analyzer implementation. Thanks, Randy

Re: Anomaly in defining search phrase

2005-06-21 Thread Erik Hatcher
On Jun 21, 2005, at 2:59 PM, [EMAIL PROTECTED] wrote: I found a discrepancy in results for an identical search ("processing") done with lucene and mysql. Seems like lucene is not returning results where the search word is associated with "-"(hyphen) or '."(period). For example it didn't re

Anomaly in defining search phrase

2005-06-21 Thread tareque
I found a discrepancy in results for an identical search ("processing") done with lucene and mysql. Seems like lucene is not returning results where the search word is associated with "-"(hyphen) or '."(period). For example it didn't returned result for a text that contained "processing-7-bit" and

Re: index phrases

2005-06-21 Thread Erik Hatcher
On Jun 21, 2005, at 12:46 PM, Sebastian Marius Kirsch wrote: On Tue, Jun 21, 2005 at 04:01:41PM +0200, Roxana Angheluta wrote: I would like to include phrases (of a certain maximum length given as a parameter) in the index. I know this is non-standard for e.g. searching, where a PhraseQuer

Re: index phrases

2005-06-21 Thread Sebastian Marius Kirsch
On Tue, Jun 21, 2005 at 04:01:41PM +0200, Roxana Angheluta wrote: > I would like to include phrases (of a certain maximum length given as a > parameter) in the index. I know this is non-standard for e.g. searching, > where a PhraseQuery can be built which makes use of the terms positions. > Howe

indexing values which might be null

2005-06-21 Thread George Abraham
Hi, I am using Lucene to index database content. I have two questions: 1. Along with some of the fields that I want indexed, there are some fields that I want stored (not indexed) in the index so as to return with hits. However I also want to be able to sort a search result using these non-indexed

First time user Question

2005-06-21 Thread Paddy Kalathur
I want Lucene to search as well as sort data . What I am not sure is, how to index my data so that I can sort and search. For example : I have a 3 rows in the database with name field value "Geoffrey Rush" , "Will Smith", and "Eva Smith" . I want to index these names so that : 1.If a user searc

Re: index phrases

2005-06-21 Thread Erik Hatcher
On Jun 21, 2005, at 10:01 AM, Roxana Angheluta wrote: Dear all, I am using Lucene for indexing documents. I would like to include phrases (of a certain maximum length given as a parameter) in the index. I know this is non-standard for e.g. searching, where a PhraseQuery can be built which

Re: Updateing Documents:

2005-06-21 Thread jian chen
Hi, You may look at this website http://www.zilverline.org Cheers, Jian On 6/21/05, Markus Atteneder <[EMAIL PROTECTED]> wrote: > I am looking for a SearchEngine for our Intranet and so i deal with Lucene. > I have read the FAQ and some Postings and i got first experiences with it > and now i

Updateing Documents:

2005-06-21 Thread Markus Atteneder
I am looking for a SearchEngine for our Intranet and so i deal with Lucene. I have read the FAQ and some Postings and i got first experiences with it and now i have some questions. 1. Is lucene a suitable SearchEngine for a Intranetsearch? I've experienced with poi and pdfbox for indexing Word/Ex

Using FSDirectory after a write

2005-06-21 Thread Erdman, Jon
I am working on an application that requires indexing of a relatively constant stream of data. All of the documentation that I have read seems to indicate that writing to the index will not affect searching, but I have run into some problems using FSDirectory in this case. It looks like FSDi

Re: How do lucene IDs work with MultiReader and MultiSearcher?

2005-06-21 Thread Erik Hatcher
On Jun 21, 2005, at 9:19 AM, Nick Burch wrote: Hi I've been scanning the JavaDocs, but I can't see anything on this. Let's say I have two indexes. Both have just been optimised, so each have lucene IDs 1-10 in them. Now, I build a MultiSearcher over these two indexes. I search, get bac

index phrases

2005-06-21 Thread Roxana Angheluta
Dear all, I am using Lucene for indexing documents. I would like to include phrases (of a certain maximum length given as a parameter) in the index. I know this is non-standard for e.g. searching, where a PhraseQuery can be built which makes use of the terms positions. However, I am not inter

How do lucene IDs work with MultiReader and MultiSearcher?

2005-06-21 Thread Nick Burch
Hi I've been scanning the JavaDocs, but I can't see anything on this. Let's say I have two indexes. Both have just been optimised, so each have lucene IDs 1-10 in them. Now, I build a MultiSearcher over these two indexes. I search, get back a Hits object, and from that a lucene ID From my

Re: Using the Searcher.java sample in a web application

2005-06-21 Thread Erik Hatcher
On Jun 21, 2005, at 7:58 AM, Brian wrote: Hello all, I recently downloaded lia source code and see that the chapter 1 sample cod e shold do all I need for now. My questions are: 1) How would I take the Searcher.java sample and put it in a web application. 2) How would I go about automatin

Re: Using the Searcher.java sample in a web application

2005-06-21 Thread JM Tinghir
Hi, > Just looking for pointers. I'm new to java and lucene. I guess you're new to J2EE too... You should study servlets and jsps a bit. You'll have to call Searcher.java in your servlet, unless you use frameworks like struts then it'll be in your business code. Good luck! Jean-Marie Tinghir

Using the Searcher.java sample in a web application

2005-06-21 Thread Brian
Hello all, I recently downloaded lia source code and see that the chapter 1 sample cod e shold do all I need for now. My questions are: 1) How would I take the Searcher.java sample and put it in a web application. 2) How would I go about automating the indexer.java? Just looking for pointers