lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joel Nylund <>
Subject exact match lookup
Date Wed, 04 Nov 2009 16:53:21 GMT

I have a field that I want to do exact match lookups using.
(when I say exact match, im looking for equivalent to a sql query  
where with no like clause so where feedClass = "Social News")

For example the field is called feedClass and im doing:



I tried using "text" and it seems to work pretty well except for  
classes with spaces in them.

So I tried using field type string, that didnt work. Then I tried  
defining a new type called:

      <fieldType name="text_nows" class="solr.TextField"  

This didnt seem to help either.

When I do these queries for this field with spaces, I seem to get  
random results

For example:

<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">5</int>
<lst name="params">
<str name="q">feedClass:Social News</str>
<result name="response" numFound="3451" start="0">
<str name="feedClass">Blog</str>
<str name="firstLetterTitle">N</str>

any ideas?


View raw message