Associating a FieldValueFilter with a search query

2013-11-11 Thread Ramprakash Ramamoorthy
Hello, I would like to search for documents that do not have a value for a particular field. I understand org.apache.lucene.search.FieldValueFilter serves the purpose to filter out documents that have/do-not-have a value. I am just wondering the way to associate this filter with a Query object. I

Alphanumeric Field Comparison : Lucene 4.5

2013-11-11 Thread Umashanker, Srividhya
Group - We are looking at sorting lucene doc's based on a field in alphanumeric order, as we expect fields to have Alpha numeric characters. Attached is the AlphaNumericFieldComparatorSource and below is the snippet of its usage. final SortField sortField_id = new SortField(FieldName._id.name()

Re: IndexWriter.addDocument() gives NullPointerException when used with a doc containing TextField

2013-11-11 Thread Ian Lea
Well, you certainly shouldn't need to take any hacky approaches. TextFields do work. Maybe post a small but complete code sample if you can't figure it out. -- Ian. On Mon, Nov 11, 2013 at 7:45 PM, Rohit Girdhar wrote: > Hi Ian, > Yes, I am using a StandardAnalyzer with the IndexWriter. > Act

IndexWriter.addDocument() gives NullPointerException when used with a doc containing TextField

2013-11-11 Thread Rohit Girdhar
Hi Ian, Yes, I am using a StandardAnalyzer with the IndexWriter. Actually I kind-of fixed the issue, by this hacky approach: ``` f = new Field("title", title_string, Field.Store.YES, Field.Index.ANALYZED); f2 = new TextField("title", f.tokenStream()) ``` and then using f2 as the field for the d

Index optimisations for shingles + ngram language modelling

2013-11-11 Thread Matthew Willson
Hi all So after attending Lucene Revolution (thanks all for some really interesting talks!) I've gotten a renewed interested in using lucene to do clever things with shingles. The main problems with shingles seem to be that they swell the index size quite a bit and that a lot of time can be spent

Re: subscribe

2013-11-11 Thread Ian Lea
Have you set an analyzer when you create your IndexWriter? -- Ian. P.S. Please start new questions in new messages with sensible subjects. On Mon, Nov 11, 2013 at 9:00 AM, Rohit Girdhar wrote: > Hi > > I was trying to use the lucene JAVA API to create an index. I am repeatedly > getting Null

Re: subscribe

2013-11-11 Thread Rohit Girdhar
Hi I was trying to use the lucene JAVA API to create an index. I am repeatedly getting NullPointerException when I try to add a document with a TextField() field to the IndexWriter. The exception is: http://pastebin.com/KFZT4XNV I even tried to use the deprecated Field() API, but still the same ex

Re: Can we use glusterfs to replicate indexed data from one box to another ?

2013-11-11 Thread bhussein
Hi, Has this issue been resolved yet? as i am facing a similar issues now. thanks, b -- View this message in context: http://lucene.472066.n3.nabble.com/Can-we-use-glusterfs-to-replicate-indexed-data-from-one-box-to-another-tp4085528p4100258.html Sent from the Lucene - Java Users mailing li

Re: JLemmaGen project

2013-11-11 Thread Michal Hlavac
Hi, I changed license to Apache Licence 2.0 to be more compatible with lucene. m. Na Monday 04 November 2013 19:14:57 Lance Norskog napĂ­sali: > This is very cool! Lemmatization is an important tool for making search > work better. > > Would you consider changing the licensing to the Apache 2.0