Upon some further experimentation, I found out that even @ matches all the
documents. However when I append the wildcard * to @ (@*) then there is no
match...

SM


Sam Michaels wrote:
> 
> Hi,
> 
> I'm running Solr 1.3/Java 1.6.  
> 
> When I run a query like  - (activity_type:NAME) AND
> title:(\...@#$%\^&\*\(\)) all the documents are returned even though there
> is not a single match. There is no title that matches the string (which
> has been escaped). 
> 
> My document structure is as follows
> 
> <doc>
> <str name="activity_type">NAME</str>
> <str name="title">Bathing</str>
> ....
> </doc>
> 
> 
> The title field is of type text_title which is described below. 
> 
> <fieldType name="text_title" class="solr.TextField"
> positionIncrementGap="100">
>       <analyzer type="index">
>         <tokenizer class="solr.WhitespaceTokenizerFactory"/>
>         <!-- in this example, we will only use synonyms at query time
>         <filter class="solr.SynonymFilterFactory"
> synonyms="index_synonyms.txt" ignoreCase="true" expand="false"/>
>         -->
>         <filter class="solr.WordDelimiterFilterFactory"
> generateWordParts="1" generateNumberParts="1" catenateWords="1"
> catenateNumbers="1" catenateAll="1" splitOnCaseChange="1"/>
>         <filter class="solr.LowerCaseFilterFactory"/>
>         <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
>       </analyzer>
>       <analyzer type="query">
>         <tokenizer class="solr.WhitespaceTokenizerFactory"/>
>         <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"
> ignoreCase="true" expand="true"/>
>         <filter class="solr.WordDelimiterFilterFactory"
> generateWordParts="1" generateNumberParts="1" catenateWords="1"
> catenateNumbers="1" catenateAll="1" splitOnCaseChange="1"/>
>         <filter class="solr.LowerCaseFilterFactory"/>
>         <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
> 
>       </analyzer>
>     </fieldType>
> 
> When I run the query against Luke, no results are returned. Any
> suggestions are appreciated.
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/When-searching-for-%21%40-%24-%5E-*%28%29-all-documents-are-matched-incorrectly-tp23797731p23804381.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to