On Wed, May 21, 2008 at 3:55 AM, Andi Vajda <[EMAIL PROTECTED]> wrote:

>
> On Tue, 20 May 2008, Rajendra Prasad Murakonda wrote:
>
> Look at how it's done in jcc/samples/PorterStemmerAnalyzer.py: a
> PorterStemmerAnalyzer instance is passed to IndexFiles which in turn passes
> it to an IndexWriter.
>
>  python samples/PorterStemmerAnalyzer.py <dir with *.txt files>
>
> works fine for me too.
>

But why can't I pass PorterStemmerAnalyzer as an analyzer  to IndexModifier?
Is it a restriction placed by PuLucene-JCC?


>
> It could very well have changed because of some static/non static method
> naming conflicts with regards to parse(). Look at the jcc "Lucene in Action"
> samples for examples on how to use MultiFieldQueryParser:
>
> ./samples/LuceneInAction/lia/advsearching/MultiFieldQueryParserTest.py
>
> ./samples/LuceneInAction/lia/extsearch/queryparser/AdvancedQueryParserTest.py
> ./samples/LuceneInAction/lia/extsearch/queryparser/CustomQueryParser.py
> ./samples/LuceneInAction/MultiFieldQueryParserTest.py
>

I looked at the first sample earlier. In the first sample you have given the
first parameter is a string where as in my code if I pass a string I am
getting an exception saying parse expects a query object not a string.

Thanks a lot,

- Raj
_______________________________________________
pylucene-dev mailing list
pylucene-dev@osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to