Hi Otis, That seems to be the problem. The term positions for the index are 1 and 3. While the positions for the query are 1 and 2.
The StopFilterTokenizer was set with setEnablePositionIncrementsDefault="true" for the index analyzer while it was not enabled for the query analyzer. Thanks! -- Jeffrey Gelens On Saturday 16 May 2009 01:55:07 Otis Gospodnetic wrote: > Hi Jeffrey, > > And now try: ?q=facility_indexed:"kooklessen en workshops"~1 > > > If that works, head over to the Solr Admin Analysis page, enter the field > name, and that phrase for both index and query analyzer. And then look at > term positions for your two main terms/tokens. > > Otis -- > Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch > > > > ----- Original Message ---- > > > From: Jeffrey Gelens <jeffrey.gel...@buyways.nl> > > To: solr-user@lucene.apache.org > > Sent: Friday, May 15, 2009 10:47:00 AM > > Subject: Simple search returns no documents > > > > Hello all, > > > > I've got some weird problem with a simple field search. > > The field facility_indexed has the following terms: > > - kooklessen (freq: 422) > > - workshop (freq: 422) > > > > These terms were tokenized from the string: "Kooklessen en Workshops". So > > during insertion in Solr, the string was succesfully indexed. > > > > When I send the following query to Solr: > > ?q=facility_indexed:"kooklessen en workshops" > > Solr returns no documents at all. I checked the tokenization of this > > query in the analyser and it breaks down the same way as when it's > > indexed (so as "kooklessen" and "workshop"). > > If I query as follows: (?q=facility_indexed:kooklessen) then Solr DOES > > return 422 documents, which is correct. The same result when I query only > > for 'workshops' > > > > Querying other strings work correct, it's only this particular string > > which causes this weird problem. > > > > Any help for debugging or of course a possible solution would be great! > > ;-) > > > > Thanks! > > > > -- > > Jeffrey Gelens