Re: Re: Group by on multi fields

2012-12-10 Thread dizh
Thanks to Martijn v Groningen. but , Is there anyone who has implemented this feature? just like SQL : select a1,a2,sum(a3) group by a1,a2; BTW: show me how to do is well too, Thank you。 --- Confident

Re: Re: Group by on multi fields

2012-12-10 Thread dizh
Thanks to Martijn v Groningen. but , Is there anyone who has implemented this feature? just like SQL : select a1,a2,sum(a3) group by a1,a2; --- Confidentiality Notice: The information contained in this

Re: Group by on multi fields

2012-12-10 Thread Martijn v Groningen
Hi Dish, Grouping on multiple fields or a field that has multiple tokens (or values) per document hasn't been implemented yet. Martijn On 10 December 2012 07:12, dizh wrote: > Hi All: > I want to ask how to do "Group by on multi fields ". > The Lucene JavaDOC only gives a demo about how to grou

RE: Deciding how to use reader

2012-12-10 Thread Lars-Erik Aabech
Thanks again. Lucene.NET is supposed to be equally thread safe, so I'll give it a go. L-E -Original Message- From: Ian Lea [mailto:ian@gmail.com] Sent: 10. desember 2012 13:18 To: java-user@lucene.apache.org Subject: Re: Deciding how to use reader Certainly in java IndexReader is t

Re: Deciding how to use reader

2012-12-10 Thread Ian Lea
Certainly in java IndexReader is thread safe. From the 4.0.0 javadocs "IndexReader instances are completely thread safe, meaning multiple threads can call any of its methods, concurrently". I know nothing about Lucene.NET. All your reasons for not using Solr sound fine, particularly the more fun

RE: Deciding how to use reader

2012-12-10 Thread Lars-Erik Aabech
OK, thanks. As far as I understand, there's no problem performance wise or other to use a singleton reader for multiple threads/users, right? I've considered Solr, but my conclusion is that installing and configuring something a bit geeky to configure, running on Java when all our stuff is Wind

Re: Deciding how to use reader

2012-12-10 Thread Ian Lea
If the index is only updated once an hour I'd create a new reader once an hour as well, synchronized with the updates. Have you considered Solr? That would probably take care of most of the complications pretty much out of the box. http://lucene.apache.org/solr/features.html -- Ian. On Mon, D

Deciding how to use reader

2012-12-10 Thread Lars-Erik Aabech
Hi! I'm using lucene.net, but I'm sure this question is not platform specific. :) I've created an index for a website which uses a central database server and three front-end servers. For now I've put the index and the building of the index on a fifth server which builds the index once an hour.

Re: porting a cutsom Analyzer from 3.6 -> 4.0

2012-12-10 Thread Nicola Buso
Hi, take a look at StandardAnalyzer sources for an example: http://grepcode.com/file/repo1.maven.org/maven2/org.apache.lucene/lucene-analyzers-common/4.0.0/org/apache/lucene/analysis/standard/StandardAnalyzer.java#StandardAnalyzer In your case you are case: - remember your analyzer have to be re