Thanks a lot ! The analyzer admin tool is indeed useful.
On 3/24/07, Yonik Seeley <[EMAIL PROTECTED]> wrote:
On 3/24/07, Bertrand Delacretaz <[EMAIL PROTECTED]> wrote: > On 3/24/07, Dimitar Ouzounov <[EMAIL PROTECTED]> wrote: > > > ...I must be doing something wrong, maybe in the schema. Does anyone > > have any suggestions?.. > > The best way to debug such problems is with the analyzer admin tool: > http://localhost:8983/solr/admin/analysis.jsp Yep... trying the analysis page, one can see that parts of the numbers (not just the catenation) are also still being generated, messing up the query. So if 123-456 is indexed, and you also want to be able to match parts of that number (like 123), then you need a query analyzer and an index analyzer for the field type, and turn off generation of parts for the query analyzer only. If you don't want to match parts, then a single analyzer for both query and indexing will do, but explicitly turn off part generation: <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="0" catenateNumbers="0" catenateAll="1"/> -Yonik