lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: Simple search returns no documents
Date Fri, 15 May 2009 23:55:07 GMT

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.gelens@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


Mime
View raw message