Hello all, This script (http://pastie.caboo.se/10872) return this : Total hits = 100 Total hits = 0 This is not cool :( Dave ? Jens ? Someone ? Do you have any idea ? Thanks in advance. -- Posted via http://www.ruby-forum.com/.
On Wed, Aug 30, 2006 at 11:46:48AM +0200, Florent Solt wrote:> > Hello all, > > This script (http://pastie.caboo.se/10872) return this : > > Total hits = 100 > Total hits = 0 > > This is not cool :( > > 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 kraemer at webit.de Schnorrstra?e 76 Tel +49 351 46766 0 D-01069 Dresden Fax +49 351 46766 66
Jens Kraemer 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... > > JensIt''s not the answer I would like to read :) :) 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). -- Posted via http://www.ruby-forum.com/.
On Wed, Aug 30, 2006 at 12:12:16PM +0200, Florent Solt wrote:> Jens Kraemer 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 :) :) > > 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 ;-) 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 kraemer at webit.de Schnorrstra?e 76 Tel +49 351 46766 0 D-01069 Dresden Fax +49 351 46766 66
On 8/30/06, Florent Solt <fsolt at rift.fr> wrote:> Jens Kraemer 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 :) :) > > 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