I am Using default search-block-form.I am hiding the search-form in search page.If I do search with Special character the form return error

You must include at least one positive keyword with characters or more.

.After I do search with letters or numbers the form returns same error message.The

input text-field

does not take new keyword as value after that error.The value remains same as the special character.

CommentFileSizeAuthor
#3 Screenshot from 2014-06-06 15:18:40.png11.72 KBadil2345

Comments

adil2345’s picture

Issue summary: View changes
alansaviolobo’s picture

This seems to work as expected. can you upload some screenshots please ?

adil2345’s picture

StatusFileSize
new11.72 KB

After the error message If do any search using search-block-form the form is submitting but the URL remains unchanged.Like

/search/node/%25

.I think we need to alter the search query or some thing.

jhodgdon’s picture

Component: documentation » search.module
Status: Active » Postponed (maintainer needs more info)
Issue tags: -search block

I'm sorry, but I am a bit confused and I need more details. Can you please provide more information?

a) What URL did you start from?

b) What exactly did you type into the search block form, as your search keywords?

c) What URL did you end up on?

d) What did you try to search for then, and what happened?

adil2345’s picture

@ jhodgdon,

a)In every page i have search block on top.If I am in example.com/user page i do search then URL changes to example.com/search/node/[keyword].

b)I tried every special characters($,#,@,% etc)

c)If i type '$' as my keyword into search block form The URL looks like example.com/search/node/%24

d)Then i tried a word like 'test' (its a node title).But getting the same error(as in screen shot).and no change in URL also.

jhodgdon’s picture

Category: Bug report » Support request
Status: Postponed (maintainer needs more info) » Fixed

The search index only indexes (and lets you search with) letters and numbers, as "words". Some non-words are treated as punctuation, and they break words. Some are not punctuation, and they are just removed before you search or index content.

After removing non-word characters, there is a setting for search (by default the value is 3) that sets the minimum length of a "word" for searching. It looks like you may not have set this value -- you need to.

If you do not include at least one word when you search, you will get the message "You must include at least one positive keyword with 3 characters or more."

So, the behavior you are describing is how the search system works by design. This is not a bug. If you want to search for non-word characters, you cannot use the Core Search module.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.