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 Anshul jain <an...@epfl.ch> on 2009/02/12 15:34:22 UTC

Lucene Alpha-numeric search

Hi,

I'm using BoostingTermQuery() of lucene. When I search for alpha-numeric
terms(e.g. a647gd), I don't get any results back. Could anyone please help
me out? Am I missing something?

Cheers,
Anshul

-- 
Anshul Jain

Re: Lucene Alpha-numeric search

Posted by Anshul jain <an...@gmail.com>.
I was over-looking analyzers, I used LowerCaseTokenizer() in my custom
designed analyzer and it was removing the numeric characters. Thank you very
much Erick, for pointing that out.

Cheers,
Anshul

On Thu, Feb 12, 2009 at 3:46 PM, Erick Erickson <er...@gmail.com>wrote:

> You need to give a LOT more details. For instance, what
> analyzers are you using at index and query time? Have
> you used Luke to look at your index and see if it contains
> what you expect? Have you used Luke to examine what
> queries look like after they are parsed? Have you tried
> seeing how your query gets parsed (query.toString())?
> Have you looked over the FAQ and tried the suggestions
> there?
>
> In short, tell us what your code looks like and what you
> have tried. Your question is unanswerable in its present
> form.
>
> Best
> Erick
>
> On Thu, Feb 12, 2009 at 9:34 AM, Anshul jain <an...@epfl.ch> wrote:
>
> > Hi,
> >
> > I'm using BoostingTermQuery() of lucene. When I search for alpha-numeric
> > terms(e.g. a647gd), I don't get any results back. Could anyone please
> help
> > me out? Am I missing something?
> >
> > Cheers,
> > Anshul
> >
> > --
> > Anshul Jain
> >
>



-- 
Anshul Jain

Re: Lucene Alpha-numeric search

Posted by Erick Erickson <er...@gmail.com>.
You need to give a LOT more details. For instance, what
analyzers are you using at index and query time? Have
you used Luke to look at your index and see if it contains
what you expect? Have you used Luke to examine what
queries look like after they are parsed? Have you tried
seeing how your query gets parsed (query.toString())?
Have you looked over the FAQ and tried the suggestions
there?

In short, tell us what your code looks like and what you
have tried. Your question is unanswerable in its present
form.

Best
Erick

On Thu, Feb 12, 2009 at 9:34 AM, Anshul jain <an...@epfl.ch> wrote:

> Hi,
>
> I'm using BoostingTermQuery() of lucene. When I search for alpha-numeric
> terms(e.g. a647gd), I don't get any results back. Could anyone please help
> me out? Am I missing something?
>
> Cheers,
> Anshul
>
> --
> Anshul Jain
>