On 9/27/07, Chris Strom <[EMAIL PROTECTED]> wrote:
> 'a' is a stop word by default (so is 'i'). If you instantiate the query
> parser with an Analyzer with no stop words, thusly:
>
> qp3 = Ferret::QueryParser.new(
> :analyzer => Ferret::Analysis::StandardAnalyzer.new([])
> )
>
> Then qp3.parse('a') (after the appropriate fields call) will return the
> desired results.
>
> -Chris
>
> On Thu, Sep 27, 2007 at 10:41:53PM +1000, Andy Shen wrote:
> > Hi there,
> >
> > I am stomped as to why QueryParser's parse method behaves differently
> > between query 'a' and 'b'.
> > See http://pastie.caboo.se/private/4rlwrecyyow3yl6qtf4tq
> >
> > Could someone please help me understand why that is the case.
> >
> > p.s. I also found 'i' produce the same behavour as 'a'
> >
> > Cheers,
> > Andy
> > _______________________________________________
> > Ferret-talk mailing list
> > [email protected]
> > http://rubyforge.org/mailman/listinfo/ferret-talk
> _______________________________________________
> Ferret-talk mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/ferret-talk
>
Thank you guys so much for pointing me to the right direction. I feel
embarrassed that I have missed the Gotcha wiki page. Those reference
links are very useful. Thanks again.
Cheers,
Andy
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk