Author Topic: Search string length ;-)  (Read 4192 times)

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Search string length ;-)
« on: June 26, 2004, 11:23:06 am »
I'd forgotten all about this. lol.

For those of you who remember (me on) the devnet forum, I was always nagging to get a shorter minimum search string length.

This forum currently only allows search strings of 4 chars or longer.

Could we reduce this a bit please (I always reckonned 2 would be useful - CF, SD, etc., but I suppose it depends on how much processing power you want to throw at it)?


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

tapjpa

  • Guest
Search string length ;-)
« Reply #1 on: June 26, 2004, 04:44:10 pm »
Lardman -

Just took a look at the admin settings and from what I can tell is with full text search enabled, of which it is, the minimum search string length is forced to 4 with no way of changing it.

Jim

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Search string length ;-)
« Reply #2 on: June 26, 2004, 05:24:55 pm »
Thanks for looking.

Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

tumnus

  • Hero Member
  • *****
  • Posts: 1176
    • View Profile
    • http://www.cpinkney.org.uk
Search string length ;-)
« Reply #3 on: June 26, 2004, 05:41:01 pm »
They managed to change it to 3 on the DevNet forums
# Search the Zaurus Howtos ## Search the Zaurus FAQs ## Find Z software at ELSI #
--------------------
UK SL5500 with Sharp ROM 3.13, SL5600 with Sharp ROM 1.32 - SuSE 9.0 Pro, Windows XP Home
Qualendar for Calendar and Todo
Socket Bluetooth CF Card (Rev F), Kingmax 512MB MMC Card, Palm Tungsten T Stylus,
Pretec CF->Smartmedia Adapter, Semsons Universal Battery Extender

markw

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • http://xwebnet.com/
Search string length ;-)
« Reply #4 on: June 27, 2004, 01:41:36 am »
Couldn't you alter the PHPs?
Zaurus sl-5500 with Sharp ROM version 3.1
128mb sd card, 2 16mb cf cards
Slackware Linux 10.0 with Kernel 2.6.7

Please visit my webblog. Be sure to post a few comments while your there :).
http://xwebnet.com/

offroadgeek

  • Administrator
  • Hero Member
  • *****
  • Posts: 1419
    • View Profile
    • https://www.oesf.org
Search string length ;-)
« Reply #5 on: June 27, 2004, 01:57:15 am »
Quote
Couldn't you alter the PHPs?
Actually, it's because of a default fulltext setting in mysql being ft_min_word_len=4.

So I changed the default setting to =2, re-built the indexes and restarted the mysql server... (actually the mysql server stopped, but wouldn't restart, which is why I had to bounce the server tonight... sorry if you were posting anything and got errors).

Now the default setting shows ft_min_word_len=2, but I still can't search on 2 characters.  I'll keep looking at it and let you all know when it's working.

Sorry for the reboot, and thanks for your patience!  I'm confident that we'll soon have 2 character searching enabled.

offroadgeek
Search the OESF Wiki
C1000 w/Cacko 1.23 beta (from Streamline) / 760 pdaxrom rc9 / 6000L (thanks Santa's elf!) / 5500 - OZ 3.3.5 / SIMpad SL4
1GB, 256mb SanDisk CF / 2x 1GB, 512mb, 256mb, 128mb SanDisk SD
Ambicom WL100C-CF wifi / Socket 56k CF modem / AmbiCom BT2000-CF (x2)
Pocketop keyboard, Piel Frama case (1000 & 5500), PDAir case (760 & 1000)
sip:536093@fwd.pulver.com
| OESF | ELSI | Zaurus User Group | ZaurusThemes |

offroadgeek

  • Administrator
  • Hero Member
  • *****
  • Posts: 1419
    • View Profile
    • https://www.oesf.org
Search string length ;-)
« Reply #6 on: June 30, 2004, 02:47:02 am »
OK - you can now search with 3 character minimum now.  I was able to find out what changes needed to be made with IPB as well as what I had already done with mysql.

I went with 3 characters vs. 2 because of the additional resources a fulltext index and searches on 2 characters would put on the server.  So see how you all like the searching by 3 characters, and let me know if you really think is should be brought down to 2.  We could always give it a try and see if it bring the server to it's needs, or kill mysql.

Thanks for your patience with all of this!

offroadgeek
Search the OESF Wiki
C1000 w/Cacko 1.23 beta (from Streamline) / 760 pdaxrom rc9 / 6000L (thanks Santa's elf!) / 5500 - OZ 3.3.5 / SIMpad SL4
1GB, 256mb SanDisk CF / 2x 1GB, 512mb, 256mb, 128mb SanDisk SD
Ambicom WL100C-CF wifi / Socket 56k CF modem / AmbiCom BT2000-CF (x2)
Pocketop keyboard, Piel Frama case (1000 & 5500), PDAir case (760 & 1000)
sip:536093@fwd.pulver.com
| OESF | ELSI | Zaurus User Group | ZaurusThemes |