Developer forum

Forum » Development » Description of how filter searching works

Description of how filter searching works

Martin Nielsen
Reply
Hi DW,

We've implemented a solution with multiple productfilters and one of the filters is a Free text search.
My problem is that when i use the text search i get very different results depending on how i search.

I have product numbers like this:
RF1000
RF10001
RF10002

If i search for "RF10001" i get one product.

If i search for "RF1000", i again only get one result, the product RF1000, the other 2 products that also match my search are not shown (RF10001 and RF10002).
I know i can add * to my search, but i dont want the users to do that. Freetext is freetext after all.

Is there some check in the search that stops further search if a product with exact product number is found?

Can we get a description of how the search works?


Regards
 Martin

Replies

 
Pavel Volgarev
Reply
Hi Martin,

Yes, there is a check. Search is usually narrowed as much as possible.

-- Pavel 
 
Martin Nielsen
Reply
Hi Pavel,

As you can see from my example, this narrowing of the search has some bothersome effects on the result, since it removes 2 perfectly good results, which IMO should be in the result aswell.

Can the check be disabled?

/Martin
 
Pavel Volgarev
Reply
Hi Martin,

No, the check cannot be disabled but it's definitely an improvement on a free text search filter. I've added a new task (#6723) to our product backlog.

-- Pavel

 
 
Martin Nielsen
Reply

Does the freetext search look in all indexed fields, or is it limited to product number and text?

/Martin

 
Pavel Volgarev
Reply
Hi Martin,

There is a special field that contains values from all fields for the given index entry. Free text search filter uses this field.

-- Pavel 
 
Steen Nørgaard Perdersen
Reply

Why not add * to the freetext search field value just before submitting using javascript? Quickfix i know, but nonetheless...
 
Martin Nielsen
Reply
 Hi Steen,

That will probably be the end of it. But it was not my first choice, if there was a checkbox somewhere :-)

/Martin





 

You must be logged in to post in the forum