Exact Match Query in Lucene with SnowBall Analyzer

2012-05-08 Thread Yogesh patel
I am using Lucene and i have one question about it I am using Snowball analyzer with English version. My index has below columns (1) id (2) Content i.e Id Content _ 1 This is murder case and murdering is crime 2 The wife of a Mumbai

Re: Lucene Question about Query

2012-05-08 Thread Yogesh patel
Thanks so much..KeywordAnalyzer works fine with exact match... On Wed, May 9, 2012 at 8:11 AM, Ivan Brusic wrote: > The snowball analyzer will not work since it analyzes the field. Use > the KeywordAnalyzer, which will preserve the text as is. > > -- > Ivan > > On Mon, May 7, 2012 at 11:25 PM, Y

Re: Lucene Question about Query

2012-05-08 Thread Ivan Brusic
The snowball analyzer will not work since it analyzes the field. Use the KeywordAnalyzer, which will preserve the text as is. -- Ivan On Mon, May 7, 2012 at 11:25 PM, Yogesh patel wrote: > I used SnowBall Analyzer with English language.In snowball analyzer is it > possible? > > > On Mon, May 7,

update/re-add an existing document with numeric fields

2012-05-08 Thread Tim Eck
Note: I'm bound to lucene 3.0.3 for the context of this question, but I would be interested to know if newer versions would help me here. I have an existing document in my directory that has one regular String field and one numeric field. I naively thought I could update that document to change

update/re-add an existing document with numeric fields

2012-05-08 Thread Tim Eck
Note: I'm bound to lucene 3.0.3 for the context of this question, but I would be interested to know if newer versions would help me here. I have an existing document in my directory that has one regular String field and one numeric field. I naively thought I could update that document to change

mongodb rest server with lucene search

2012-05-08 Thread Andrei
I wrote mongodb rest server with lucene search Would be happy if anyone try it https://sites.google.com/site/mongodbjavarestserver/home - To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-m

Re: [MAVEN] Heads up: build changes

2012-05-08 Thread Greg Bowyer
greg@localhost ~ $ java -version java version "1.7.0_04" Java(TM) SE Runtime Environment (build 1.7.0_04-b20) Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode) greg@localhost ~ $ uname -a Linux localhost 2.6.39 #4 SMP Sun Aug 21 13:53:29 PDT 2011 x86_64 Intel(R) Core(TM) i7-2820QM C

RE: [MAVEN] Heads up: build changes

2012-05-08 Thread Steven A Rowe
Hi Greg, I don't see that problem - 'ant generate-maven-artifacts' just works for me. I suspect that the XSLT processor included with your JDK does not support the EXSLT str:split functionality used in the lucene/site/xsl/index.xsl stylesheet, which is invoked from the 'process-webpages' target

Re: [MAVEN] Heads up: build changes

2012-05-08 Thread Greg Bowyer
For me ant generate-maven-artifacts if giving me this error, any thoughts ? -- %< -- process-webpages: [xslt] Processing /home/greg/projects/lucene-solr/lucene/build.xml to /home/greg/projects/lucene-solr/lucene/build/docs/index.html [xslt] Loading stylesheet /home/greg/projects/luce

[MAVEN] Heads up: build changes

2012-05-08 Thread Steven A Rowe
If you use the Lucene/Solr Maven POMs to drive the build, I committed a major change last night (see https://issues.apache.org/jira/browse/LUCENE-3948 for more details): * 'ant get-maven-poms' no longer places pom.xml files under the lucene/ and solr/ directories. Instead, they are placed in a

Re: Re: Many keywords problem

2012-05-08 Thread 周洲
Let me leave,3q~ 2012/5/8 Li Li > But this only get (term1 or term2 or term3. ). you can't > implement (term1 or term2 ...) and (term3 or term4) by this method. > maybe you should writer your own Scorer to deal with this kind of queries. > > On Tue, May 8, 2012 at 9:44 PM, Li Li wrote: > >

Re: Re: Many keywords problem

2012-05-08 Thread Li Li
But this only get (term1 or term2 or term3. ). you can't implement (term1 or term2 ...) and (term3 or term4) by this method. maybe you should writer your own Scorer to deal with this kind of queries. On Tue, May 8, 2012 at 9:44 PM, Li Li wrote: > disjunction query is much slower than conjuct

Re: Re: Many keywords problem

2012-05-08 Thread Li Li
disjunction query is much slower than conjuction query. That's why many search engine use conjuction as default. by the way, you say you have 5,000,000 documents. how many documents match your query? do you need sort by relevant score or just want to match and don't care sort? if you don't care sor

Parallel searching use ExecutorService and Collectors

2012-05-08 Thread Christoph Kaser
Hi all, I want to speed up my searches by using multiple CPU cores for one search. I saw that there is a possibility to use multithreaded search by passing an ExecutorService to the IndexSearcher: idxSearcher = new IndexSearcher(reader, Executors.newCachedThreadPool()); I call my searc

Re:Re: Many keywords problem

2012-05-08 Thread 齐保元
Thanks for you reply,firstly. So many or query is to monitor the term.One scene is that:if i want to know cities of a province and events that happens, I may instantiate the query like "(California or NewYork or SanFransico or SomePlace) and (Pollution or Criminal ... or Alcohol)".

Re: Many keywords problem

2012-05-08 Thread Li Li
a disjunction (or) query of so many terms is indeed slow. can u describe your real problem? why you should the disjunction results of so many terms? On Sun, May 6, 2012 at 9:57 PM, qibaoy...@126.com wrote: > Hi, >       I met a problem about how to search many keywords  in about 5,000,000 > do