How to implement a proximity search using LINES as slop

2011-02-07 Thread Livia Hauser
Hi All, I use solr 3.x and put excel documents into an index. I have my own query parser and use SpanQueries to provide a proximity search feature. It works really good. Most often than not its better to limit the proxmity to one or two line's, not to X words. I try to find a NewLine indicator..

Works on Windows, crashes on Linux

2011-02-07 Thread Pulkit Singhal
Hello Folks, I'm using Lucene 3.0, my code runs fine on Windows but when I test it on Linux, I run into the following stack trace: java.io.FileNotFoundException: /opt/apache/tomcat/webapps/myapp/luceneData/backend_IP/en_US/_1.fdt (No such file or directory) at java.io.RandomAccessFile.ope

Re: Extending org.apache.lucene.analysis.br.BrazilianAnalyzer to discard numeric tokens

2011-02-07 Thread Robert Muir
On Sun, Feb 6, 2011 at 3:28 PM, Georger Araujo wrote: > Hi, > I started using Lucene a few weeks ago, and I must say I'm amazed. Hats off > to the developers and the community! > I'd like to write a custom analyzer whose only difference to > org.apache.lucene.analysis.br.BrazilianAnalyzer is that

Re: termInfosIndexDivisor vs termIndexInterval

2011-02-07 Thread mark harwood
Somewhat historic reasons. It used to be IndexWriter was the only place you could define this setting (making it an index-time decision burnt into the index). The IndexReader option is a relatively newer addition that adds the flexibility to decide about memory usage whenever you open the index (

Indexing a date from a POJO

2011-02-07 Thread Jean-Claude Dauphin
Hi, I would like to know if the code below is correct, because the date is not well displayed in Luke I have a POJO with a date defined as follow: public class SolrPositionDTO { @Field private String address; @Field private Date beginDate; And in the schema config file the field is d

termInfosIndexDivisor vs termIndexInterval

2011-02-07 Thread Anuj Shah
Hi, Is someone able to explain the purpose of both these properties. By reading the documentation I don't understand the benefit of setting the termIndexInterval on the IndexWriter. Thanks Anuj