lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Willnauer <simon.willna...@gmail.com>
Subject Re: Need Help:How to Get the enumeration of Terms Ending with a given word
Date Mon, 18 Feb 2013 22:23:41 GMT
On Thu, Feb 14, 2013 at 11:42 AM, VIGNESH S <vigneshklncit@gmail.com> wrote:
> Hi,
>
> I have two questions
>
> 1.How to Get the enumeration of Terms Ending with a given word
> I saw we can get enumerations of word starting at a given word by
> Indexreader.terms(term())) method

unless you want to iterate all terms and check each if it ends with a
given string I think you need to index the terms in reversed order and
get a prefix terms enum from that field. Look at [1]

[1] http://lucene.apache.org/core/4_1_0/analyzers-common/org/apache/lucene/analysis/reverse/ReverseStringFilter.html
>
> 2.Actually I am doing an multiphrase query.In that I do do a suffix
> query on first word..How can i do please kindly help..
>
>
> --
> Thanks and Regards
> Vignesh Srinivasan
> 9739135640
>
> ---------------------------------------------------------------------
> 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