You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by "Gordin, Ira" <ir...@sap.com> on 2018/10/04 06:58:14 UTC

Camel case search with Lucene

Hi friends,

How can I implement Camel case search with Lucene?

Thanks,
Ira



Re: Camel case search with Lucene

Posted by Mikhail Khludnev <mk...@apache.org>.
Could it be something with WordDelimiterFilter, EdgeNgram, and then
WordDelimiterFilter with CATENATE_ALL?

On Thu, Oct 4, 2018 at 10:31 AM Gordin, Ira <ir...@sap.com> wrote:

> Hi Vadim,
>
> I want to use camel case when searching, for example, search "RHC" and
> find "redHotChilly".
>
> Thanks,
> Ira
>
> -----Original Message-----
> From: Vadim Gindin <vg...@detectum.com>
> Sent: Thursday, October 4, 2018 10:24 AM
> To: java-user@lucene.apache.org
> Subject: Re: Camel case search with Lucene
>
> Hi Ira.
>
> If you want to use camel case query, for example, search "redHotChilly"
> instead of "red hot chilly" - you should use own pattern tokenizer to
> divide the query by regex pattern.
>
> Regards
> Vadim Gindin
>
> On Thu, Oct 4, 2018 at 11:58 AM Gordin, Ira <ir...@sap.com> wrote:
>
> > Hi friends,
> >
> > How can I implement Camel case search with Lucene?
> >
> > Thanks,
> > Ira
> >
> >
> >
>


-- 
Sincerely yours
Mikhail Khludnev

RE: Camel case search with Lucene

Posted by "Gordin, Ira" <ir...@sap.com>.
Hi Vadim,

I want to use camel case when searching, for example, search "RHC" and find "redHotChilly".

Thanks,
Ira

-----Original Message-----
From: Vadim Gindin <vg...@detectum.com> 
Sent: Thursday, October 4, 2018 10:24 AM
To: java-user@lucene.apache.org
Subject: Re: Camel case search with Lucene

Hi Ira.

If you want to use camel case query, for example, search "redHotChilly"
instead of "red hot chilly" - you should use own pattern tokenizer to
divide the query by regex pattern.

Regards
Vadim Gindin

On Thu, Oct 4, 2018 at 11:58 AM Gordin, Ira <ir...@sap.com> wrote:

> Hi friends,
>
> How can I implement Camel case search with Lucene?
>
> Thanks,
> Ira
>
>
>

Re: Camel case search with Lucene

Posted by Vadim Gindin <vg...@detectum.com>.
Hi Ira.

If you want to use camel case query, for example, search "redHotChilly"
instead of "red hot chilly" - you should use own pattern tokenizer to
divide the query by regex pattern.

Regards
Vadim Gindin

On Thu, Oct 4, 2018 at 11:58 AM Gordin, Ira <ir...@sap.com> wrote:

> Hi friends,
>
> How can I implement Camel case search with Lucene?
>
> Thanks,
> Ira
>
>
>