473,385 Members | 1,673 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Lucene

Dear sir,

I am trying some simple programs for search using lucene.

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

I am using lucene-2.4.0 . On execution of this line-->
" import org.apache.lucene.analysis.snowball.SnowballAnalyz 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
Feb 12 '09 #1
8 2473
r035198x
13,262 8TB
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).
Feb 12 '09 #2
JosAH
11,448 Expert 8TB
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
Feb 12 '09 #3
@r035198x
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 StandardAnalyzer in lucene-2.4.0.... When i use SnowballAnalyzer it shows error as package doesnt exists....So what should i do for using SnowballAnalyzer?......
Feb 12 '09 #4
@r035198x
Sir, I need which version of Lucene has snowball analyzer.... Because i can able to execute programs using StandardAnalyzer in lucene-2.4.0.... When i use SnowballAnalyzer it shows error as package doesnt exists....So what should i do for using SnowballAnalyzer?......
Feb 12 '09 #5
r035198x
13,262 8TB
Evidently that class is not in the jar you have then. Google search lucene-snowball.jar and see if that jar will have it.
Feb 12 '09 #6
Thanks i got it.....
Feb 12 '09 #7
r035198x
13,262 8TB
In lucene-snowball.jar?
Feb 12 '09 #8
YES....That jar file is available...
Feb 13 '09 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Steve Jenkins | last post by:
Hi, Wonder if someone could help me. I'm looking for a PHP/MySQL based search engine that can search flat files i.e. build it's own index from flat files. I've used Apaches' Lucene before...
0
by: the_kiddie98 | last post by:
Hi, I have indexed some information from a database using the dotNet port of Lucene. If I index a field as a keyword then Lucene does not pick it up when searching. If I index the field as text...
4
by: Vic Cekvenich | last post by:
What would be performance of pgSQL text search vs MySQL vs Lucene (flat file) for a 2 terabyte db? thanks for any comments. ..V -- Please post on Rich Internet Applications User Interface...
0
by: dashprasannajit | last post by:
package djvusearching; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import org.apache.lucene.analysis.cjk.CJKAnalyzer; //import...
1
by: keith_rhodes | last post by:
Hi, all. I know that there is a way of using JavaScript to call a Java method, and for the JavaScript to collect some sort of response from the Java, as I had a page working a few years ago that...
0
by: Mirnes | last post by:
I hope someone is using Lucene.net and can help me to make it work since (in my opinion) documentation for Lucene.net is poor or I'm used to different kind of documentation. Can someone explain...
3
by: ambikadevi | last post by:
Hi, How to integrate the "Lucene Text Search" with the PHP scripts. Any idea abt this..?
3
by: amitbagaria | last post by:
Hello, i'm trying to compile "InMemoryExample.java" of lucene search but i'm getting these errors!! "C:\Java\ant_home>javac InMemoryExample.java InMemoryExample.java:82: cannot find symbol...
4
by: sliverdigger | last post by:
I have been experimenting with Zend/Php/Lucene. I have used Lucene extensively as Java in Tomcat Servlets. Zend's php Lucene works the same way, but it is much slower to index for some...
0
by: davidvikimca | last post by:
Dear sir, I am trying some simple programs for search using lucene. I am trying to use SnowballAnalyzer in my search for "English" Language. I am using lucene-2.4.0 . On execution...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.