[dokuwiki] [PATCH] search problems and solutions

  • From: Matthias Grimm <matthiasgrimm@xxxxxxxxxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Wed, 1 Jun 2005 19:01:02 +0200

Hi,

I had some problems with the search recently.

1. The search input accepts more than one word but more words result in
more results. I would expect that I narrow the search with more words to
find. I analyzed the code and found that DokuWiki combined the query
words with 'OR' instead of 'AND' as I expected and as most search engines
(for eg. google) work.

The patch 'search_combination_and.patch solved the problem and closes
FS#158, I think, as additonal benefit.

2. I looked for a topic in my wiki and typed it into the query field.
After I saw the results I realized that I made a mistake but the search
entry was empty and I had to retype the whole query again. This was
really annoying so I developed a patch that keep the query as long as
the user stays on the search page.

The patch 'keep_search_input.patch' maked me happy ;-)

  Best Regards
   Matthias

Other related posts: