473,614 Members | 2,335 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Lucene

12 New Member
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
Feb 12 '09 #1
8 2484
r035198x
13,262 MVP
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 Recognized Expert MVP
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
davidvikimca
12 New Member
@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 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?......
Feb 12 '09 #4
davidvikimca
12 New Member
@r035198x
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?......
Feb 12 '09 #5
r035198x
13,262 MVP
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
davidvikimca
12 New Member
Thanks i got it.....
Feb 12 '09 #7
r035198x
13,262 MVP
In lucene-snowball.jar?
Feb 12 '09 #8
davidvikimca
12 New Member
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
4496
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 (http://jakarta.apache.org/lucene/docs/index.html), so I'm looking for something similar. If there's a pay-for product out there, I don'd mind paying. So, it needs:
0
1262
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 then Lucene finds it. Here is a sample of the code. If anyone can see why please e-mail me at the_kiddie98@yahoo.com. This is somewhat urgent. Indexer: Document doc = new Document(); doc.Add (Field.Text ("director_name",
4
8882
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 (RiA/SoA) <http://www.portalvu.com> ---------------------------(end of broadcast)--------------------------- TIP 3: if posting/reading through Usenet, please send an appropriate
0
2841
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 org.apache.lucene.analysis.standard.StandardAnalyz er; import org.apache.lucene.queryParser.ParseException;
1
3065
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 used Java to read a file from the filesystem then the JavaScript formatted the contents of the file (a simple list) by wrapping HTML tags round certain fields. Now, I am trying to make an HTML page that presents a query form, that would then...
0
1119
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 step by step how to create index (there is source code but how I call index), how to search (also, there is source code), etc. I'm new to .net and I try to learn by samples but lucene.net is totally confusing me. This article on CodeProject...
3
6078
by: ambikadevi | last post by:
Hi, How to integrate the "Lucene Text Search" with the PHP scripts. Any idea abt this..?
3
8672
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 symbol : method UnIndexed(java.lang.String,java.lang.String) location: class org.apache.lucene.document.Field doc.add(Field.UnIndexed("title", title));
4
3393
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 reason--way too slow to ever finish, when working a moderately sized site--on a shared host. I could try to figure out how to break the site up into chunks and then index once and then update many times.
0
1986
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 of this line--> " import org.apache.lucene.analysis.snowball.SnowballAnalyzer; " 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...
0
8142
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8640
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8589
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8287
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8443
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5548
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4058
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4136
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1757
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.