List Info

Thread: Abort() when using QueryParser.setAllowLeadingWildcard()




Abort() when using QueryParser.setAllowLeadingWildcard()
country flaguser name
United States
2007-04-05 14:24:41
The setAllowLeadingWildcard() function always aborts for me.
E.g., the
following code causes an abort() to happen within Python and
exits the
interpreter:

  from PyLucene import QueryParser, StandardAnalyzer
  parser = QueryParser("Hello World",
StandardAnalyzer())
  parser.setAllowLeadingWildcard()

Is this a known issue? Are there any workarounds? My
versions are:

VERSION 2.1.0-1
LUCENSE_VERSION 2.1.0-509013

This is on a Linux x86_64 (Fedora Core 5) machine.

Cheers,

Martin.


------------------------------------------------------------
---------------
Martin Reddy                                        Pixar
Animation Studios 
                                                    1200
Park Avenue
reddypixar.com                                    
Emeryville, CA 94608
http://MartinReddy.net/  
                          Tel. (510) 922 4093
_______________________________________________
pylucene-dev mailing list
pylucene-devosafoundation.org
http://lists.osafoundation.org/mailman/listinfo/pylu
cene-dev

Re: Abort() when using QueryParser.setAllowLeadingWildcar d()
country flaguser name
United States
2007-04-05 15:02:39
On Thu, 5 Apr 2007, Martin Reddy wrote:

> The setAllowLeadingWildcard() function always aborts
for me. E.g., the
> following code causes an abort() to happen within
Python and exits the
> interpreter:
>
>  from PyLucene import QueryParser, StandardAnalyzer
>  parser = QueryParser("Hello World",
StandardAnalyzer())
>  parser.setAllowLeadingWildcard()
>
> Is this a known issue? Are there any workarounds? My
versions are:

Not an known issue but a bug indeed. I can reproduce it,
probably a mix-up of 
mine in the wrapper.

Andi..
_______________________________________________
pylucene-dev mailing list
pylucene-devosafoundation.org
http://lists.osafoundation.org/mailman/listinfo/pylu
cene-dev

Re: Abort() when using QueryParser.setAllowLeadingWildcar d()
country flaguser name
United States
2007-04-05 15:08:19
On Thu, 5 Apr 2007, Martin Reddy wrote:

> The setAllowLeadingWildcard() function always aborts
for me. E.g., the
> following code causes an abort() to happen within
Python and exits the
> interpreter:
>
>  from PyLucene import QueryParser, StandardAnalyzer
>  parser = QueryParser("Hello World",
StandardAnalyzer())
>  parser.setAllowLeadingWildcard()

Indeed, the wrappers were declared wrong.
The correct call now is:
parser.setAllowLeadingWildcard(True/False)

Andi..

_______________________________________________
pylucene-dev mailing list
pylucene-devosafoundation.org
http://lists.osafoundation.org/mailman/listinfo/pylu
cene-dev

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )