El vie, 27-04-2007 a las 16:59 -0700, Chris Hostetter escribió:
> : In order to do this, we tried subclassing the SnowballAnalyzer... it
> : doesn't work yet, though. Here is the code of our custom class:
>
> At first glance, what youv'e got seems fine, can you elaborate on what you
> mean by "it
28 apr 2007 kl. 07.52 skrev Kun Hong:
karl wettin wrote:
27 apr 2007 kl. 14.11 skrev Erik Hatcher:
On Apr 27, 2007, at 6:39 AM, karl wettin wrote:
27 apr 2007 kl. 12.36 skrev Erik Hatcher:
Unless someone has some other tricks I'm not aware of, that is.
I guess it would be possible to
I don't understand why you think HitCollector caches lots of data.
All it does is provide a place for you to decide whether you want a
doc or not. There's no fetching of the doc, or anything else except
the score and the doc ID. There's nothing else you have to do
with HitCollector.collect method.
You actually wouldn't have to maintain two versions. You could,
instead, inject the accentless (stemmed) terms in your single
index as synonyms (See Lucene In Action). This is easier
to search and maintain
But it also bloats your index by some factor since you're storing two
words for every a
Hi,
I encountered one problem in lucene 1.4.3: I called
Searcher.search(, new Sort("myfiled");
In "myfiled", most values looks like number "123456" or sth
similiar, but one field contains a value "Just a TRY", then
I got error:
java.lang.ClassCastException at
org.pache.lucene.search.FieldDocSo
;t *really* be removed at this point,
so searching against this index will still work.
mv newIndex index
reopen the IndexSearcher
You could also play with sym-links:
normally you'd have: index -> index-built-on-20070428
when you build a new index the following night you call it
index-built-
Lisheng,
Have a look at the javadoc for the Sort object:
Valid Types of Values
There are three possible kinds of term values which may be put into
sorting fields: Integers, Floats, or Strings. Unless
SortField objects are specified, the type of value
in the field is determined by parsing the