Sponsored Content
The Lounge What is on Your Mind? Updated Forum Search Index Min Word Length to 2 Chars and Added Quick Search Bar Post 303027082 by Neo on Saturday 8th of December 2018 11:17:04 AM
Old 12-08-2018
Update:

I had to change this back to three because the load was killing the server:

Code:
[mysqld]
ft_min_word_len=3

Sorry, our database is too large for ft_min_word_len=2.

That was a disaster. The load average shot up to over 50 and was averaging around 40 after making the change. Now it is back to normal (less than 2).

On the other hand, the indexes were build with ft_min_word_len=2 so they seem to still work at the moment.
 

4 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Awk search for max and min field values

hi, i have an awk script and I managed to figure out how to search the max value but Im having difficulty in searching for the min field value. BEGIN {FS=","; max=0} NF == 7 {if (max < $6) max = $6;} END { print man, min} where $6 is the column of a field separated by a comma (3 Replies)
Discussion started by: Kirichiko
3 Replies

2. UNIX for Dummies Questions & Answers

quick question vi word search

hi, while in vi, we use /string to look for the particular string. after that operation, the particular string is highlighted in yellow color. how do i take the highlight off? thanks so much. (1 Reply)
Discussion started by: hobiwhenuknowme
1 Replies

3. UNIX for Dummies Questions & Answers

How to search for a string with special chars?

Hi guys, I am trying to find the following string in a file, but I always get pattern not found error, not sure what is missing here. Can you help please? I do a less to open the xrates.log and then do a /'="18"' in the file and tried various combinations to search the below string. String... (8 Replies)
Discussion started by: santokal
8 Replies

4. What is on Your Mind?

Updated Forum Search Index Min Word Length (Again)

For some reason, three char word lengths were not showing up in search results, even though the minimum is set to three and has been for a long time. After monkeying around with this, I turned off full page search, dumped all search indexes, and re-enabled full text search and it's working... (1 Reply)
Discussion started by: Neo
1 Replies
Wiki::Toolkit::Search::SII(3pm) 			User Contributed Perl Documentation			   Wiki::Toolkit::Search::SII(3pm)

NAME
Wiki::Toolkit::Search::SII - Search::InvertedIndex plugin for Wiki::Toolkit. SYNOPSIS
my $indexdb = Search::InvertedIndex::DB::Mysql->new( ... ); my $search = Wiki::Toolkit::Search::SII->new( indexdb => $indexdb ); my %wombat_nodes = $search->search_nodes("wombat"); Provides search-related methods for Wiki::Toolkit. See also Wiki::Toolkit::Search::Base, for methods not documented here. METHODS
new # EITHER my $indexdb = Search::InvertedIndex::DB::Mysql->new( -db_name => $dbname, -username => $dbuser, -password => $dbpass, -hostname => '', -table_name => 'siindex', -lock_mode => 'EX' ); # OR my $indexdb = Search::InvertedIndex::DB::DB_File_SplitHash->new( -map_name => "/home/wiki/indexes.db", -lock_mode => "EX" ); # THEN my $search = Wiki::Toolkit::Search::SII->new( indexdb => $indexdb ); Takes only one parameter, which is mandatory. "indexdb" must be a "Search::InvertedIndex::DB::*" object. SEE ALSO
Wiki::Toolkit, Wiki::Toolkit::Search::Base. perl v5.14.2 2011-09-25 Wiki::Toolkit::Search::SII(3pm)
All times are GMT -4. The time now is 12:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy