CLIP from my whining about why the search doesn’t work in TW.
- to start this off can we at least agree on a couple things:
o standard search for - RED BALL would search on RED AND BALL
o TW does RED OR BALL – which is WRONG!!
- BASIC search should be capable of:
o RED BALL = RED AND BALL
o “red ball†= only match “red ball†as quoted
o and then, maybe RED or BALL = RED OR BALL
with a little more digging and some input from marclaporte, redflow and mose I think I have figured out the problem:
- TW supports the concept of FULL TEXT SEARCH (FT)
- this allows user to (from example above) do a search like “+red +ball†to achieve “red AND ballâ€Â.
- but these is a bug in concept in searchlib - function _find()
- if FT is set then _FIND does the right thing by doing a MATCH AGAINST sql query
- HOWEVER – if it doesn’t find any results it ALSO will do a simple (i.e. non-FT) search
o in concept this is silly since it defeats whole point of doing FT in the first place
o also, it generates an sql error because for simple search a REGEXP query is done which will choke on the + signs in the search string
BUG FIX SUGGESTION:
- remove code which does “simple search if no resultsâ€Â
o at least make it optional
OTHER improvements
- as I have stated before – the “NORMAL†concept of search IS my fixed version of FT search
- because of that the default search should be FT
o by that I mean “red ball†should automatically do FT “+red +ball†without having to put + signs
To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.
To help developers solve the bug, we kindly request that you demonstrate your bug on a show.tikiwiki.org instance. To start, simply select a version and click on "Create show.tikiwiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show.tikiwiki.org.
filename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |