Lucene

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • davidvikimca
    New Member
    • Feb 2009
    • 12

    Lucene

    Dear sir,

    I am trying some simple programs for search using lucene.

    I am trying to use SnowballAnalyze r in my search for "English" Language.

    I am using lucene-2.4.0 . On execution of this line-->
    " import org.apache.luce ne.analysis.sno wball.SnowballA nalyz er; "
    it shows error as package doesnt exist.
    I have downloaded this jar file (lucene-snowball-2.4.0.jar )and kept in my jdk class path . But still it shows error as "cannot find symbol".

    Which version of lucene has this analyzer..? or Whether this analyzer has to be downloaded separately?


    kindly help me...



    Thanks,
    Vignesh
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    What do you mean by "and kept in my jdk class path"?
    You should include the jar in your project's class path not in the jdk's class path (what ever that means).

    Comment

    • JosAH
      Recognized Expert MVP
      • Mar 2007
      • 11453

      #3
      A jar file is just a zip file (plus some special entries). You can look at the contents of your jar file using an inflater program (winzip?) and see what's in that file.

      kind regards,

      Jos

      Comment

      • davidvikimca
        New Member
        • Feb 2009
        • 12

        #4
        Originally posted by r035198x
        What do you mean by "and kept in my jdk class path"?
        You should include the jar in your project's class path not in the jdk's class path (what ever that means).
        Sir,What u said was rite it is in my project class path... I need which version of Lucene has snowball analyzer.... Because i can able to execute programs using StandardAnalyze r in lucene-2.4.0.... When i use SnowballAnalyze r it shows error as package doesnt exists....So what should i do for using SnowballAnalyze r?......

        Comment

        • davidvikimca
          New Member
          • Feb 2009
          • 12

          #5
          lucene

          Originally posted by r035198x
          What do you mean by "and kept in my jdk class path"?
          You should include the jar in your project's class path not in the jdk's class path (what ever that means).
          Sir, I need which version of Lucene has snowball analyzer.... Because i can able to execute programs using StandardAnalyze r in lucene-2.4.0.... When i use SnowballAnalyze r it shows error as package doesnt exists....So what should i do for using SnowballAnalyze r?......

          Comment

          • r035198x
            MVP
            • Sep 2006
            • 13225

            #6
            Evidently that class is not in the jar you have then. Google search lucene-snowball.jar and see if that jar will have it.

            Comment

            • davidvikimca
              New Member
              • Feb 2009
              • 12

              #7
              Thanks i got it.....

              Comment

              • r035198x
                MVP
                • Sep 2006
                • 13225

                #8
                In lucene-snowball.jar?

                Comment

                • davidvikimca
                  New Member
                  • Feb 2009
                  • 12

                  #9
                  YES....That jar file is available...

                  Comment

                  Working...