Search for two-character term Fails -- Fix?

Having trouble installing Oxygen? Got a bug to report? Post it all here.
manthony
Posts: 22
Joined: Mon Jan 20, 2014 11:44 pm

Search for two-character term Fails -- Fix?

Post 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
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

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

Post 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
Post Reply