Page 1 of 1

Search for two-character term Fails -- Fix?

Posted: Thu May 29, 2014 1:10 am
by manthony
Hi,

We have a two character term in our documentation "S3" and we'd like it to be returned by the search. I've checked out the nwSearchFnt.js file and it appears that around line 118:

var txt_enter_at_least_1_char = "You must enter at least one character.";

Is there a means to configure to allow this search through? It appears the code is letting this through but not actually searching.

Mary

Re: Search for two-character term Fails -- Fix?

Posted: Thu May 29, 2014 11:36 am
by sorin_ristache
Hi Mary,

In the nwSearchFnt.js file in the function contains please modify the line 424:

Code: Select all

    if (word.length > 2) {
to:

Code: Select all

    if (word.length > 1) {
The English words that are used very often like no, or, on, be, is, if, it, etc will not be returned as result words, but your rare words (S3, etc) will be returned.


Regards,
Sorin