[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [platform-help-dev] Enabling Case-sensitive Search
|
Christal,
Lucene search engine requires text analyzers to work. The engine does
itself does not process text just indexes the terms extracted from the
stream of characters by analyzers. It is up to the analyzers to perform
whatever text processing is required to achieve good search results.
Help ships with analyzers that break text into words, and perform
conversion to lower-case (for English and German analyzers also perform
stemming and stop words removal). Converting text to lower-case results in
case insensitive search. To achieve case sensitive search analyzers need
to be used that do not perform lower case conversion.
For search to work correctly the same analyzer need to be applied during
indexing and search, so it is impossible to achieve both case sensitive and
insensitive search with a single index. See
http://dev.eclipse.org/bugs/show_bug.cgi?id=8067 Since case insensitive
search produces more results and is usually preferred, this one was chosen
to be used in Eclipse by default.
The default behavior of search can be overridden by providing an analyzer
to be used instead of the default one. Help defines
org.eclipse.help.luceneAnalyzer point that can be used to contribute
analyzers. If contributed analyzer does not change letter case, the search
will be case sensitive. You would need to contribute such an analyzer for
all the languages that you want the search to be case insensitive. It
could be the same implementation class, if it works for all the languages,
just that you need to contribute an extension for every language you would
like this analyzer to be used with.
Konrad Kolosowski
Eclipse Help System
"Pomeroy, Christal"
<cpomeroy@xxxxxxxxxxxx> To: "'platform-help-dev@xxxxxxxxxxx'" <platform-help-dev@xxxxxxxxxxx>
Sent by: cc:
platform-help-dev-admin@ Subject: [platform-help-dev] Enabling Case-sensitive Search
eclipse.org
07/18/2002 02:31 PM
Please respond to
platform-help-dev
Default behaviour for the Lucene search is case insensitive.
Is it currently possible to enable case-sensitivity? If so, how would I go
about doing this?
Thanks,
Christal
_______________________________________________
platform-help-dev mailing list
platform-help-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-help-dev