You should be able to achieve this using ngrams. This article may not be
100% related to what you are trying to do but it may provide some insight on
what you can do to support your requirements.
http://www.lucidimagination.com/blog/2009/09/08/auto-suggest-from-popular-queries-using-edgengrams/

<http://www.lucidimagination.com/blog/2009/09/08/auto-suggest-from-popular-queries-using-edgengrams/>If
you create a separate field storing the ngrams of your title then you should
be able to do the partial matches you are looking for.

On Sat, May 1, 2010 at 7:53 AM, Ahmet Arslan <iori...@yahoo.com> wrote:

>
> > Folks,
> > Greetings.
> > Using dismax query parser is there a way to perform prefix
> > match. For
> > example: If I have a field called 'booktitle' with the
> > actual values as
> > 'Code Complete', 'Coding standard 101', then I'd like to
> > search for the
> > query string 'cod' and have the dismax match against both
> > the book
> > titles since 'cod' is a prefix match for 'code' and
> > 'coding'.
>
> dismax does not support PrefixQuery (cod*) if you asking that. edismax or
> Extended Dismax [1] supports supports full lucene query syntax.
>
> [1]https://issues.apache.org/jira/browse/SOLR-1553
>
>
>
>

Reply via email to