Getting Dates Back out of lucene

2005-12-06 Thread Alan Chandler
I added a date field to a document with doc.add(Field.keyword("A Date",myDate)); How do I get it back out again as a date? -- Alan Chandler http://www.chandlerfamily.org.uk Open Source. It's the difference between trust and antitrust. --

Re: Getting Dates Back out of lucene

2005-12-06 Thread Miles Barr
On Tue, 2005-12-06 at 09:35 +, Alan Chandler wrote: > I added a date field to a document with > > doc.add(Field.keyword("A Date",myDate)); > > How do I get it back out again as a date? You should be able to use the org.apache.lucene.document.DateField#stringToDate(String) method. Miles

Re: Getting Dates Back out of lucene

2005-12-06 Thread Alan Chandler
On Tuesday 06 Dec 2005 10:10, Miles Barr wrote: > On Tue, 2005-12-06 at 09:35 +, Alan Chandler wrote: > > I added a date field to a document with > > > > doc.add(Field.keyword("A Date",myDate)); > > > > How do I get it back out again as a date? > > You should be able to use the > org.apache.luc

Re: Highlighter, Term Positions and Stopwords

2005-12-06 Thread Erik Hatcher
On Dec 5, 2005, at 11:32 PM, Dan Climan wrote: Do stopfilters create non-contiguous token positions? No, not currently. StopFilter leaves token positions in their original state, which defaults to contiguous (offset of 1). There is an open issue to change this behavior though, and at one

Persian/Arabic Analyzer

2005-12-06 Thread Amir Hosein Jadidi Nejad
Hi All, is anybody have a "persian (farsi) analyzer" for lucene search engine. if "arabic" is available, i can customize it to farsi/persian. Regard, --- Amir Hosein Jadidi Nejad Student Of Computer Science Bu-Ali Sina Univer

Re: Persian/Arabic Analyzer

2005-12-06 Thread Pierrick Brihaye
Hi, Amir Hosein Jadidi Nejad wrote: if "arabic" is available, i can customize it to farsi/persian. There is indeed an arabic analyzer : http://savannah.nongnu.org/projects/aramorph ... but, given the difference of structure between the 2 languages, I doubt it can be very helpful. Chee

Broken Link to WordNet on Sandbox

2005-12-06 Thread Dan Funk
In the sandbox at http://lucene.apache.org/java/docs/lucene-sandbox/ There is a link to the WordNet repository: http://svn.apache.org/repos/asf/lucene/java/trunk/contrib/WordNet it should be: http://svn.apache.org/repos/asf/lucene/java/trunk/contrib/wordnet Where "wordnet" is not capitalized. J

SearchBlox adds REST-API and Spelling Suggestions in Version 3.1

2005-12-06 Thread Robert Selvaraj
SearchBlox Software has released Version 3.1 of its J2EE Content Search Software. SearchBlox delivers out-of-the-box search functionality for quick and easy integration with websites, applications, intranets and portals. SearchBlox uses the Lucene Search API and incorporates integrated HTTP/HTTPS,

Basic lucene usage

2005-12-06 Thread John Powers
Am I correct in assuming that I can use lucene by itself as a search engine in a website? If each user session is looking at the fsdirectory and searching on it, is that ok? Or do I need to put in a queue or pool that handles searching it; only allowing the one thing application-wide to actuall

Re: Broken Link to WordNet on Sandbox

2005-12-06 Thread Daniel Naber
On Dienstag 06 Dezember 2005 15:33, Dan Funk wrote: > There is a link to the WordNet repository: > http://svn.apache.org/repos/asf/lucene/java/trunk/contrib/WordNet > > it should be: > http://svn.apache.org/repos/asf/lucene/java/trunk/contrib/wordnet Thanks, it has been fixed now. Regards Danie

RE: Basic lucene usage

2005-12-06 Thread Mordo, Aviran (EXP N-NANNATEK)
Lucene is thread safe, it is recommended that you only have one IndexSearcher instance. No problems with multiple searches on the same IndexSearcher. You can index while searching, as soon as you want the new entries to be found by the IndexSearcher, just get a new instance of IndexSearcher Avira

Non scoring search

2005-12-06 Thread John Patterson
Hi, I was wondering if there is a standard way to retrive documents WITHOUT scoring and sorting them. I need a list of documents that contain certain terms but I do not need them sorted or scored. Looking at the source it appears that I can use the TermDocs directly and write a method similar

Re: Non scoring search

2005-12-06 Thread Chris Hostetter
: I was wondering if there is a standard way to retrive documents WITHOUT : scoring and sorting them. I need a list of documents that contain certain : terms but I do not need them sorted or scored. Using Filters directly (ie: constructing them, and then calling the bits() method yourself) is th

Is there any timing constraints with lucene.

2005-12-06 Thread Alan Chandler
I have implemented a "Database" on top of lucene and am currently testing it. When I manually step through my test suite in the debugger, it works fine. When I run it without the debugger it fails. The peice that fails is a where I update a document (by using a IndexReader to create a IndexSear

Re: Is there any timing constraints with lucene.

2005-12-06 Thread Alan Chandler
On Tuesday 06 Dec 2005 22:44, Alan Chandler wrote: > I have implemented a "Database" on top of lucene and am currently testing > it. > > When I manually step through my test suite in the debugger, it works fine. > > When I run it without the debugger it fails. My fault - I was throwing an excepti

Confused about boolean query and how an IndexReader is associated with Hits

2005-12-06 Thread Alan Chandler
I am trying to construct, via individual query api, a query to search for documents with a field name of "Category" and a value of either "Category1" OR "Category2" (or both). My code to do this (given categories is the set of strings with the category names I wish to search for) is as follows