lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Willnauer <simon.willna...@googlemail.com>
Subject Re: Lucene 4.0 and WhitespaceAnalyzer
Date Sun, 13 Mar 2011 12:14:24 GMT
On Sun, Mar 13, 2011 at 12:19 PM, Patrick Diviacco
<patrick.diviacco@gmail.com> wrote:
> Sorry, I had some issues with the mailing list and I didn't explain
> properly. The reason is that I'm using the nightly built of Lucene (trunk)
> and such WhitespaceAnalyzer is not there. Also, if I download the commons
> analyzers library it is not there.

well it should be there - look at
/trunk/modules/analysis/common/src/java/org/apache/lucene/analysis/core/WhitespaceAnalyzer.java
go to the trunk folder and run ant package from there this should
build the analyzer-common.jar too

simon
> thanks
>
> On 9 March 2011 03:07, Simon Willnauer <simon.willnauer@googlemail.com>
> wrote:
>>
>> Why do you want to replace the WhitespaceAnalyzer? I don't really
>> understand what you are up to.
>>
>> simon
>>
>> On Fri, Mar 4, 2011 at 3:21 PM, Patrick Diviacco
>> <patrick.diviacco@gmail.com> wrote:
>> > What's the best way to replace WhitespaceAnalyzer in this line in Lucene
>> > nightly build 4.0 ? Is there a generic analyzer I can use ?
>> >
>> > writer = new IndexWriter(FSDirectory.open(INDEX_DIR), new
>> > WhitespaceAnalyzer(), true, IndexWriter.MaxFieldLength.LIMITED);
>> >
>> > thanks
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-user-help@lucene.apache.org
>>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message