[0.10.x] Index#search with wildcard bug

Hello all,

This script (Parked at Loopia) return this :

Total hits = 100
Total hits = 0

This is not cool :frowning:

Dave ? Jens ? Someone ? Do you have any idea ?

Thanks in advance.

On Wed, Aug 30, 2006 at 11:46:48AM +0200, Florent S. wrote:

Dave ? Jens ? Someone ? Do you have any idea ?

there was a mail recently where this problem already came up ( subject
was “adding new items to index breaks searches with *” ).

I always thought that searching with only a wildcard as in ‘id:*’ would
not
be possible at all. So I’d consider it a bug that Ferret delivers
results in
the first place…

Jens


webit! Gesellschaft für neue Medien mbH www.webit.de
Dipl.-Wirtschaftsingenieur Jens Krämer [email protected]
Schnorrstraße 76 Tel +49 351 46766 0
D-01069 Dresden Fax +49 351 46766 66

On Wed, Aug 30, 2006 at 12:12:16PM +0200, Florent S. wrote:

Jens

It’s not the answer I would like to read :slight_smile: :slight_smile:

But do you know how to do this query : “Any document that have an id
field” ?

I don’t know of a way to accomplish that. But maybe it’s not as I think
and Dave has implemented such a feature and in reality it’s a bug that
it doesn’t return results the second time. Maybe optimizing the index
before searching another time helps ?

PS: Sorry Jens, I have not correctly understood the previous mail. I
thought it was only for the * alone (without a field).

nothing to be sorry about :wink:

in fact, the query parser will by default parse the query ‘’ to
'id:
OR content:*’ (if your index has the fields id and content), so
there’s no difference.

Jens


webit! Gesellschaft für neue Medien mbH www.webit.de
Dipl.-Wirtschaftsingenieur Jens Krämer [email protected]
Schnorrstraße 76 Tel +49 351 46766 0
D-01069 Dresden Fax +49 351 46766 66

On 8/30/06, Florent S. [email protected] wrote:

Jens

It’s not the answer I would like to read :slight_smile: :slight_smile:

But do you know how to do this query : “Any document that have an id
field” ?

Hi Florent,

I answered this on the other thread that Jens mentioned but I better
say it again here. This was a bug which has been fixed. “id:" will
match all documents with or without an id field. To get all documents
with an id field you should use "id:?
”. Wait for version 0.10.2
though before this will work.

Cheers,
Dave

Thanks a lot Dave, great job !

Jens K. wrote:

there was a mail recently where this problem already came up ( subject
was “adding new items to index breaks searches with *” ).

I always thought that searching with only a wildcard as in ‘id:*’ would
not
be possible at all. So I’d consider it a bug that Ferret delivers
results in
the first place…

Jens

It’s not the answer I would like to read :slight_smile: :slight_smile:

But do you know how to do this query : “Any document that have an id
field” ?

PS: Sorry Jens, I have not correctly understood the previous mail. I
thought it was only for the * alone (without a field).