Re: Querying on specific token attributes

2013-12-28 Thread peng
Don't think this is possible! See this JIRA ticket: https://issues.apache.org/jira/browse/LUCENE-2125 If you don't store it, you cannot search it. -- View this message in context: http://lucene.472066.n3.nabble.com/Querying-on-specific-token-attributes-tp4030891p4108544.html Sent from the Luc

Migrating SnowballAnalyzer to 4.1

2013-02-28 Thread Peng Gao
ply states "Deprecated. (3.1) Use the language-specific analyzer in modules/analysis instead. This analyzer will be removed in Lucene 5.0." I can't figure out how to rewrite it using 4.1 API. Could you help? Thanks, Peng

RE: Migrating SnowballAnalyzer to 4.1

2013-02-28 Thread Peng Gao
Hi Steve, Thanks for the help. One more question: Is EnglishAnalyzer a drop-in replacement for SnowballAnalyzer("English", ...), in terms of stemming? Thanks again Peng PS Sorry for the Thread Hijacking. Will behave the next time. > -Original Message- > From: Steve

Accumulating facets over a MultiReader

2013-07-01 Thread Peng Gao
How do I accumulate counts over a MultiReader (2 IndexReader)? The following code causes an IOException: ArrayList facetRequests = new ArrayList(); for (String groupField : groupFields) facetRequests.add(new CountFacetRequest(new CategoryPath(groupField, '/'), 1)); Face

RE: Accumulating facets over a MultiReader

2013-07-03 Thread Peng Gao
using IndexWriter.AddIndexes(). If the temp index has facet index, this approach creates a bad index. Is there a way I can build faceted index in multiple threads? - Gao Peng > -Original Message- > From: Shai Erera [mailto:ser...@gmail.com] > Sent: Monday, July 01, 2013 8:25 PM &

RE: Accumulating facets over a MultiReader

2013-07-03 Thread Peng Gao
, I loop through the temp index, and for each doc, check if it's already in the master, addDocument() only if it doesn't exist. Now I have facets, how do I selectively merge docs? Thanks again for your help, Gao Peng > -Original Message- > From: Shai Erera [mailto:

RE: Accumulating facets over a MultiReader

2013-07-05 Thread Peng Gao
Shai, Once again, thanks for the help. Yes, I am re-indexing. Using FacetFields.addFacets() on the doc works. Given that I need to check the uniqueness before merging an index with facets into a master, is there better way to it without re-indexing? Gao Peng > -Original Message- >

RE: Accumulating facets over a MultiReader

2013-07-05 Thread Peng Gao
of every document that exists in a. > Then use addIndexes with an AtomicReader which overrides getLiveDocs to > return the modified live docs. > Same as option 1, but you don't actually do the delete operation, which is > more costly than just unsetting a bit. > > Shai > >

A question regarding the setSlop method of class PhraseQuery (Lucene version 3.0.1)

2010-06-27 Thread a peng
Hi, I know the indexed content contains the following text: "This is a test". And the search phrase I used is "This is a formal test", and then I set the slop of the PhraseQuery as 2 with setSlop(2), but I found that I can not get a search result. If I set the search phrase as "This is formal test

Re: A question regarding the setSlop method of class PhraseQuery (Lucene version 3.0.1)

2010-06-27 Thread a peng
Hi, I am using StandardAnalyzer(Version.LUCENE_30); 2010/6/27 tarun sapra > which analyzer are you usin'? > > > On Sun, Jun 27, 2010 at 7:12 AM, a peng wrote: > > > Hi, > > > > I know the indexed content contains the following text: "This is a test&

Re: A question regarding the setSlop method of class PhraseQuery (Lucene version 3.0.1)

2010-06-28 Thread a peng
formal test" the words "This" and "test" are > 2 > slop factor apart thats why this phrase is working. > > > > On Mon, Jun 28, 2010 at 11:37 AM, a peng wrote: > > > Hi, > > > > I am using StandardAnalyzer(Version.LUCENE_30); > &g

Re: A question regarding the setSlop method of class PhraseQuery (Lucene version 3.0.1)

2010-06-28 Thread a peng
gt; > > > I think you're misunderstanding the intent of PhraseQueries and slop. > > Slop > > > is the number of intervening tokens that may exist between the words > > > you're looking for. However, all the words you're looking for MUST > exist. >

Re: A question regarding the setSlop method of class PhraseQuery (Lucene version 3.0.1)

2010-06-29 Thread a peng
Hi Erick, Any comments about this requirement? 2010/6/29 a peng > Hi Erick, > > Thanks for you reply, now I get the point why I can not get the search > result. But can you guide me how can I use Lucene to implement the following > search feature: > Basically we can call t

How to implement fuzzy phrase search with Lucene?

2010-07-12 Thread a peng
Hi, I have a requirement recently to implement fuzzy phrase, for example, in the indexed document there is a sentence "I like lucene very much". And when I search "I do like lucene very much" or "I like lucene much", I both want to get the search result, can someone guide me how to implement this f

Re: Where to download lucene-analyzers and lucene-highlighter?

2009-09-26 Thread Peng Yu
- > Uwe Schindler > H.-H.-Meier-Allee 63, D-28213 Bremen > http://www.thetaphi.de > eMail: u...@thetaphi.de > > >> -Original Message- >> From: Peng Yu [mailto:pengyu...@gmail.com] >> Sent: Saturday, September 26, 2009 2:16 PM >> To: java-user@lucene.apache

Where to download lucene-analyzers and lucene-highlighter?

2009-09-26 Thread Peng Yu
Hi, I don't see where I can download lucene-analyzers.jar and lucene-highlighter.jar? Can somebody show me? Regards, Peng - To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail:

Re: Where to download lucene-analyzers and lucene-highlighter?

2009-09-26 Thread Peng Yu
;> -Original Message- >> From: Peng Yu [mailto:pengyu...@gmail.com] >> Sent: Saturday, September 26, 2009 2:03 PM >> To: java-user@lucene.apache.org >> Subject: Re: Where to download lucene-analyzers and lucene-highlighter? >> >> Hi, >> >> I am w

Re: Where to download lucene-analyzers and lucene-highlighter?

2009-09-26 Thread Peng Yu
done) Should there be a command in the distribution to make the compilation step simple? Regards, Peng On Sat, Sep 26, 2009 at 6:19 AM, Joel Halbert wrote: > Hi Peng - they are both within the contrib dir in your lucene package dowload > e.g > > lucene-2.4.0/contrib/highlighter/*.j