mainArabic Analyzer for Java - Support: sr #105324, cannot use Arabic Analyzer with...

 
 

sr #105324: cannot use Arabic Analyzer with lucene 1.9.1

Submitter:  Ibrahim <tingba>
Submitted:  Fri 28 Apr 2006 05:48:55 AM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  4 - Important Status:  Done
Privacy:  Public Assigned to:  None
Open/Closed:  Open Operating System:  Microsoft Windows
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 13 Dec 2007 07:36:47 PM UTC, comment #4: 

You don't say very much.

Please use Luke to see what is in your index.

Then, we can probably see what's happening.

Cheers,

p.b.

Pierrick Brihaye <brihaye>
Group administrator
Thu 13 Dec 2007 12:53:22 PM UTC, comment #3: 

hello!
i have the same problem ,the index same to be created but when i search a world it return always results 0.i don t know where is the problem i use -ArabicAnalyzer-1_1.0b.jar
                  -commons-collections-3.2.jar
                  -lucene-1.4.3.jar
please help me !! thanks

hatem <psycoat>
Sun 30 Apr 2006 05:12:27 PM UTC, comment #2: 

Thanks a lot. It compiles without exceptions.

Ibrahim <tingba>
Fri 28 Apr 2006 07:24:46 AM UTC, comment #1: 

Please :

1) don't attach so big files unless requested
2) do not CC to my own address : I'm rather used to answer such questions in the mailing-list.

The error message is clear :
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/collections/MultiHashMap

The JVM doesn't find MultiHashMap which is in commons-collections.jar. This file must be in your CLASSPATH.

Note that Aramorph has not been tested with Lucene 1.9.

Please report back.

Pierrick Brihaye <brihaye>
Group administrator
Fri 28 Apr 2006 05:48:55 AM UTC, original submission:  

can I put the class inside the indexwriter for lucene i.e.:

IndexWriter writer = new IndexWriter(indexDir, new
gpl.pierrick.brihaye.aramorph.lucene. ArabicStemAnalyzer(),true);

I tried to do this but it is not working (thows exceptions). I'm using lucene 1.9.1
The pdf file which will be indexed is attached (arabic file pdf version 1.3)

=================

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/co
llections/MultiHashMap
        at gpl.pierrick.brihaye.aramorph.InMemoryDictionaryHandler.<clinit>(InMe
moryDictionaryHandler.java:49)
        at gpl.pierrick.brihaye.aramorph.AraMorph.<init>(AraMorph.java:105)
        at gpl.pierrick.brihaye.aramorph.AraMorph.<init>(AraMorph.java:94)
        at gpl.pierrick.brihaye.aramorph.lucene.ArabicGlosser.<init>(ArabicGloss
er.java:64)
        at gpl.pierrick.brihaye.aramorph.lucene.ArabicGlosser.<init>(ArabicGloss
er.java:54)
        at gpl.pierrick.brihaye.aramorph.lucene.ArabicGlossAnalyzer.tokenStream(
ArabicGlossAnalyzer.java:58)
        at org.apache.lucene.index.DocumentWriter.invertDocument(DocumentWriter.
java:162)
        at org.apache.lucene.index.DocumentWriter.addDocument(DocumentWriter.jav
a:93)
        at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:450)

        at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:436)

        at Indexer.indexFile(Indexer.java:44)
        at Indexer.indexDirectory(Indexer.java:33)
        at Indexer.index(Indexer.java:18)
        at Indexer.main(Indexer.java:55)

Can any one help me please

Ibrahim <tingba>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #9849:  ArabicAnalyzer.zip added by tingba (292KiB - application/x-zip-compressed - This is the correct files)
file #9848:  sample.pdf added by tingba (85KiB - application/pdf)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by brihaye (Posted a comment)
  • -email is unavailable- added by psycoat (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2006-04-30 brihaye StatusNone Done
    2006-04-28 brihaye Carbon-CopyRemoved -email is unavailable- -
    2006-04-28 tingba Attached File- Added ArabicAnalyzer.zip, #9849
        Carbon-Copy- Added -email is unavailable-
    2006-04-28 tingba Attached File- Added sample.pdf, #9848

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code