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.
--
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
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
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
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
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
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 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,
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
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
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
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
: 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
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
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
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
16 matches
Mail list logo