Index a manually constructed term vector as a Lucene document

2011-07-10 Thread Xiyang Chen
Hi, I have some term vectors each with a number of (term, score) pairs. These vectors were derived from text documents which are no longer obtainable. I want to be able to add these vectors as individual documents to Lucene index. I understand this can be accomplished by writing my own analyzer c

StandardAnalyzer compatibility between 2.3 and 3.0

2011-07-10 Thread Trejkaz
Hi all. I created a test using Lucene 2.3. When run, this generates a single token: public static void main(String[] args) throws Exception { String string = "\u0412\u0430\u0441\u0438\u0301\u043B\u044C\u0435\u0432"; StandardAnalyzer analyser = new StandardAnalyzer();

Re: Some question about Lucene

2011-07-10 Thread Yusniel Hidalgo Delgado
Thanks Steve. Helpful this slide. Greetings. - Mensaje original - De: "Steven A Rowe" Para: java-user@lucene.apache.org Enviados: Domingo, 10 de Julio 2011 21:45:48 (GMT-0500) Auto-Detected Asunto: RE: Some question about Lucene This slide show is a few years old, but I think it mi

RE: Some question about Lucene

2011-07-10 Thread Steven A Rowe
This slide show is a few years old, but I think it might be a good introduction for you to the differences between the projects: http://www.slideshare.net/dnaber/apache-lucene-searching-the-web-and-everything-else-jazoon07/ Steve -Original Message- From: Ing. Yusniel Hidalgo Delgado [ma

Some question about Lucene

2011-07-10 Thread Ing. Yusniel Hidalgo Delgado
Hello I'm a new Lucene user. I have the following question: is posible to build a crawler/spider with Lucene library or Lucene is only for index/search phases. I am studying three project: Nutch, Lucene and Solr but I don't see what is the main difference between them. Greetings . --

Re: FSDirectory source code mistake!

2011-07-10 Thread Simon Willnauer
Hey, you are right FSDirectory is abstract, yet the fact that it doesn't declare an abstract method doesn't make it wrong. Please use the static factory methods FSDirectory.open(File) to create an instance. This factory will create a reasonable default for your platform. see the javadoc for detail

FSDirectory source code mistake!

2011-07-10 Thread Parsa Moshrefi
Greeting, There's a mistake in writing the type of the class FSDirectory in the core of Lucene 3.3. This class is defined as an abstract one while No abstract method is found inside. Also it yields some other problems like not being able to create an instance of FSDirectory in the code. Please answ