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

2013-08-19 Thread Zhang, Lisheng
Hi, We are considering to use glusterfs to replicate indexed data from one box to another, I searched Google and found that some people did seem to use glusterfs for this purpose, we are using lucene 3.6. I tested read/write in parallel (thread to search and another thread to index), and fou

Is using TokenStream in TextField constructor a way to chain Analyzers

2013-08-19 Thread asarkar
I'm new to Lucene and given myself an assignment to index and search the local Maven repo. What I'm trying to do is my analyzer to get the groupId and artifactId out of the POM files, as separate tokens, which are then indexed as "groupAndArtifactId" field. I realize that Lucene does not have a way

Re: How to get hits coordinates in Lucene 4.4.0

2013-08-19 Thread Jon Stewart
Done. https://issues.apache.org/jira/browse/LUCENE-5181 Jon On Mon, Aug 19, 2013 at 1:26 PM, Michael McCandless < luc...@mikemccandless.com> wrote: > Hi Jon, > > Can you open an issue for this? We can explore how/whether to get the > current docID to the formatter... > > Mike McCandless > >

Re: How to get hits coordinates in Lucene 4.4.0

2013-08-19 Thread Michael McCandless
Hi Jon, Can you open an issue for this? We can explore how/whether to get the current docID to the formatter... Mike McCandless http://blog.mikemccandless.com On Mon, Aug 19, 2013 at 1:07 PM, Jon Stewart wrote: > Iterating over term matches is a recent need for me, too (experimenting > with

Re: How to get hits coordinates in Lucene 4.4.0

2013-08-19 Thread Jon Stewart
Iterating over term matches is a recent need for me, too (experimenting with ranking matches/passages independently, across documents). I'm using the new PostingsHighlighter and giving it my own PassageFormatter. This does no formatting, but does store away the offsets from each Passage. One big p

Re: SPI class of type org.apache.lucene.codecs.Codec error

2013-08-19 Thread Amal Kammoun
Dear All, Please do you have any advice regarding the issue we raised bellow and in the previous post? Thank you for your help. best regards, Amal find here the two links http://lesimisped.free.fr/servo/servicesP1.png http://lesimisped.free.fr/servo/servicesP2.png When we open org.apache.luc

Final token filters

2013-08-19 Thread Markus Jelsma
Hi, This is likely discussed before but i couldn't to find it. Why are most token filters final, or are most or all members private and / or final? It is impossible to customize token filters by extending them, instead we need to copy code around. How do you customize for example some bits with

Re: Searching within a Search Result

2013-08-19 Thread David Miranda
Still can not implement this feature. Previously to perform a search in the 'label', I used the following code that worked: Query q = new QueryParser(Version.LUCENE_43, "label", analyzer > ).parse(label); > searcher.search(q, collector); > ScoreDoc[] hits = collector.topDocs().scoreDocs; But with

Re: Boolean Query when indexing each line as a document.

2013-08-19 Thread Roberto Ragusa
On 08/19/2013 08:17 AM, Ankit Murarka wrote: > doc.add(new StringField("contents",line,Field.Store.YES)); Did you try with: doc.add(new Field("contents",line,Field.Store.YES)); ? -- Roberto Ragusamail at robertoragusa.it