Hi mario,
PlainTextDictionary expects a text file with one word per line like:
hello
world
foo
bar
simon
2009/12/23 Mário André :
> Hello friends,
>
> I’m new here and in the lucene Project. I’m trying use the "spellchecker"
> according to the exemple below:
>
>
>
> // To index a file containin
: In the source of SpellChecker lines 352-353 I see that after the indexing is
: done the index is reopened:
: searcher.close();
: searcher = new IndexSearcher(this.spellIndex);
:
: Why does that second line exist at all?
when you instantiate a SpellChecker object, it opens a Searcher for reuse
Hi
Apologies for bringing this mail up again. But I have resolved some of the
issues that I originally started with including composite queries. However
I just have 1 remaining question which I would be grateful if someone could
assist me with.
I have a class whcih performs the creation of the s
: dir is a local variable inside a method, so it's not getting reused.
: Should I synchronise the whole method? I think that would slow things down in
: a concurrent environment.
i don't really have any new advice beyond my previous comment...
: > if you have a fully exeuctable test case (instea
Hi
Another thing that I was wondering is how to apply the construction of the
spell index. Where is the most appropriate place to create the spell index?
For example:
IndexReader spellReader = IndexReader.open(fsDirectory1);
IndexReader spellReader2 = IndexReader.open(fsDirectory2);
MultiRead
dir is a local variable inside a method, so it's not getting reused.
Should I synchronise the whole method? I think that would slow things
down in a concurrent environment.
Thanks for your response.
Chris Hostetter wrote:
: My code looks like this:
:
: Directory dir = null;
: try {
:di
: My code looks like this:
:
: Directory dir = null;
: try {
:dir = FSDirectory.getDirectory("/path/to/dictionary");
:SpellChecker spell = new SpellChecker(dir); // exception thrown here
:// ...
:dir.close();
: This code works, but in a highly concurrent situation AlreadyClosedEx
On Donnerstag, 13. Dezember 2007, Haroldo Nascimento wrote:
> I am using the SpellCheck classes of Lucene for create the "Did you
> Mean" feature.
> I need load into memory all verbets of Spanish language (it wil be my
> dictinary).
>
> Where I can get (download) this dictionary. Maybe .txt
I didn't have performance issues when using the spell checker.
Can you describe what you tried and how long it took, so
people can relate to that.
AFAIK the spell checker in o.a.l.search.spell does not "expand
a query by adding all the permutations of potentially misspelled
word". It is based on b
Thanks a ton, Hoss. I just did an ant on the contrib/spellchecker
directory and it produced a jar file in the LUCENE_HOME/build/
directory. Replacing the old jar file with the new jar file fixed my
errrors as I suspected. Thanks, again.
-Ryan
On Mar 15, 2007, at 1:38 PM, Chris Hostetter
: My question basically was is there a spellchecker-2.*1*-rc1-dev.jar?
There *should* be a spellchecker 2.1 jar in the contrib/spellchecker/
directory of the 2.1 release.
-Hoss
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
Fo
15 mar 2007 kl. 15.33 skrev Ryan O'Hara:
My question basically was is there a spellchecker-2.*1*-rc1-dev.jar?
There has been changes since 2.0. You can also take a look at this:
https://issues.apache.org/jira/browse/LUCENE-632
The problems I'm having...
Exception:
java.lang.NullPointerE
My question basically was is there a spellchecker-2.*1*-rc1-dev.jar?
The problems I'm having...
Exception:
java.lang.NullPointerException
at
org.apache.lucene.search.spell.SpellChecker.indexDictionary
(SpellChecker.java:298)
at DidYouMeanIndexer.createSpellIndex(DidYouMeanInd
14 mar 2007 kl. 21.47 skrev Ryan O'Hara:
Is there a SpellChecker.jar compatible with Lucene 2.1. After
updating to Lucene 2.1, I seem to have lost the ability to create a
spell index using spellchecker-2.0-rc1-dev.jar. Any help would be
greatly appreciated.
Can you explain the problem
25 jan 2007 kl. 20.43 skrev Ryan O'Hara:
Is there anyway to sort the suggestions prior, so that grabbing
only one suggestion would give you the best suggestion, in this
case "genetics"?
Without having looked at the code for a long time, I think the
problem is what the lucene scoring cons
The value of the word - the word itself, should be your unique identifier.
Otis
- Original Message
From: Josh Joy <[EMAIL PROTECTED]>
To: java-user@lucene.apache.org
Sent: Thursday, January 11, 2007 5:39:24 AM
Subject: Re: SpellChecker Index - remove words?
Thanks for the repl
Thanks for the replyI guess my concern is that I
want to ensure that
I don't accidentally delete other words than the
intended word. Example,
if I build a custom index, I can delete a word not
based on the term
itself, though in the term I can include a "unique"
identifier as well.
Can the
Josh,
The spellchecker index is just another Lucene index, so you can delete
documents/words from it the same way you delete documents from any Lucene index
- using IndexReader's delete(...) methods. You can pass that delete method a
Term where the field name is "word" and the value is the miz
: import org.apache.lucene.search.spell.Dictionary;
: import org.apache.lucene.search.spell.LuceneDictionary;
: import org.apache.lucene.search.spell.SpellChecker;
:
: cause is seems like there are not included in Lucene.Net. Could this be
: right ? Are there alternatives ?
Those classes are pat
Hi Mark,
thanks a lot for the link. I already found this but i can not use the
libarys
import org.apache.lucene.search.spell.Dictionary;
import org.apache.lucene.search.spell.LuceneDictionary;
import org.apache.lucene.search.spell.SpellChecker;
cause is seems like there are not included in Luce
neils wrote:
Hi,
i had seen that a suggestion-tool (like google: Did you mean xyz?) can be
implemented with a addon for lucene which is called SpellingChecker.
Is this correct or is there another (better) solution and where can this
addon be downloaded (cause i do not find a working download
Thanks Martin, I removed the attachment and the link to it.
In the future, please feel free to edit Wiki pages yourself, that's the main
idea behind Wikis. :)
Otis
- Original Message
From: Martin Braun <[EMAIL PROTECTED]>
To: java-user@lucene.apache.org
Sent: Friday, June 30, 2006 7:36:
: I don't know who can update the Wiki Pages so I am just mailing here.
anyone can edit the wiki, just create an account (click "Login" and it
will give you that option)
: So I wanted to build _only_ the spellcheck-contrib from the
: SVN-repository, but it seems to me that there are no ant-tar
1 apr 2006 kl. 03.13 skrev karl wettin:
1 apr 2006 kl. 00.20 skrev Xiaocheng Luan:
Not sure if this is the right place to report this issue:
The accuracy value, which can be set via setAccuracy(), is being
modified in SpellChecker.java when a word is checked. As a result,
the "min" may
1 apr 2006 kl. 00.20 skrev Xiaocheng Luan:
Not sure if this is the right place to report this issue:
The accuracy value, which can be set via setAccuracy(), is being
modified in SpellChecker.java when a word is checked. As a result,
the "min" may be pushed
very high and will not sugge
25 matches
Mail list logo