Quote:
Currently I just replace the "-" by a space but that brings way too much results.
that's because the query is using "OR" on the different terms; see this
post.
Quote:
What do I have to do so that a search request for "CAN-RT-2213" brings this result and if he searches for "CAN-RT" this should also work ?
if you know that's the format, you could write a custom bridge and use three different fields where you add it like this:
Code:
codeType1="CAN"
codeType2="CAN-RT"
codeType3="CAN-RT-2213"
when you parse a query, you select the field to be searched on according to the format of the searchstring; this should perform very well as it's an exact match on a single term. There's a similar bridge in the examples of reference documentation dealing with day, month, year parts.
Another approach is to split them in different fields:
Code:
codeType1="CAN"
codeType2="RT"
codeType3="2213"
In this case you can apply some cool trick using filters to have partial result caching.