More in this section

Forums / Bugs & Issues / Search mode AllWords not working

Search mode AllWords not working

2 posts, 0 answered
  1. Nigel
    Nigel avatar
    38 posts
    01 Dec 2004
    15 Jul 2008
    Link to this post

    I can't seem to get AllWords to return different results than AnyWords. I expected that AllWords would behave as though there were and AND between search terms.

    Is there a fix or workaround available?

  2. Nikola
    Nikola avatar
    51 posts
    24 Sep 2012
    18 Jul 2008
    Link to this post
    Hi Nigel,

    You're right, seems that the search query is always using same operator internally. And when you enter two words it is searching for contents that contain both words but not as strict phrase where it will actually apply AND. It's been marked as a bug and will be fixed for the next release.

    The only workaround is to include OR operator in the textbox between the words entered for AnyWords or inclose the words in quotation marks for a phrase search. But to implement this as a default behavior you have to change and reconstruct the QueryString["SearchQuery"] value at run-time.

    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
2 posts, 0 answered