Re: TokenStream: How to get token text?

2012-12-25 Thread dokondr
Hi Steve, Thanks for you help (just found your e-mail in list archive), your solution works! Below is complete working example... However, before finding your answer, I hacked a straw-man solution, which is bad way to solve the problem: // Hack out token - bad way! String tmp = ts.

TokenStream: How to get token text?

2012-12-25 Thread dokondr
Hello, Please, help. I am lost in TokenStream / Token / Analyzer API. I am trying to figure out how to get _token_itself_ or token text while looking at "Invoking the Analyzer" example (see example below and also at: http://lucene.apache.org/core/4_0_0/core/org/apache/lucene/analysis/package-summar

Some fixes to typos in documentation

2012-12-18 Thread dokondr
Hi, Found some typos. In package description: http://lucene.apache.org/core/4_0_0/core/org/apache/lucene/analysis/package-summary.html?is-external=true#package_description In the example code bellow the following corrections are needed: OffsetAttribute offsetAtt = addAttribute(OffsetAttribute.cla

Looking for example code: Tokenizer + Analyzer for Russian stemming

2012-12-18 Thread dokondr
> Hello, > I am looking for an example of using Tokenizer + Analyzer (in particular > org.apache.lucene.analysis.ru.RussianAnalyzer) for standalone stemming. > Can't find such an example here: > > http://lucene.apache.org/core/4_0_0/core/org/apache/lucene/analysis/package-summary.html?is-external=t

Re: Russiam stemmer?

2012-12-17 Thread dokondr
I have found it: .../lucene-4.0.0/analysis/common/src/java/org/apache/lucene/analysis/ru Sorry for confusion :( On Tue, Dec 18, 2012 at 3:58 AM, dokondr wrote: > Thanks Steve! > It is weird, but I cant > find org.apache.lucene.analysis.ru.RussianLightStemmer ! > I have just downl

Re: Russiam stemmer?

2012-12-17 Thread dokondr
example of using the Snowball > stemmer as part of a Lucene analysis chain: < > http://svn.apache.org/viewvc/lucene/dev/tags/lucene_solr_4_0_0/lucene/analysis/common/src/java/org/apache/lucene/analysis/ru/RussianAnalyzer.java?view=markup > >. > > Steve > > On Dec 17, 2012, at