lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shai Erera <>
Subject Re: Regarding DrillDown search
Date Mon, 10 Feb 2014 04:28:43 GMT

If you want to drill-down on first name only, then you have several options:

1) Index Author/First, Author/Last, Author/First_Last as facets on the
document. This is the faster approach, but bloats the index. Also, if you
index the author Author/Jebarlin, Author/Robertson and
Author/Jebarlin_Robertson, it still won't allow you to execute a query

2) You should modify the query to be a PrefixQuery, as if the user chose to
search Author/Jeral*. You can do that with DrillDown.term() to create a
Term($facets, Author/Jeral) (NOTE: you shouldn't pass '*' as part of the
CategoryPath) and then construct your own PrefixQuery with that Term.

Hope that helps,

On Mon, Feb 10, 2014 at 6:21 AM, Jebarlin Robertson <>wrote:

> Dear Shai,
> I have one doubt in DrillDown search, when I search with a CategoryPath of
> author, it is giving me the result if I give the accurate full name only.
> Is there any way to get the result even if I give the first or last name.
> Can you help me to search like (*contains* the word in Facet search), if
> the latest API supports or any other APIs.
> Thank You
> --
> Thanks & Regards,
> Jebarlin Robertson.R
> GSM: 91-9538106181.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message