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:
to:
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
Re: Search for two-character term Fails -- Fix?
Posted: Mon Jul 01, 2024 3:50 pm
by Sergio_7
Hi everyone,
I know that this topic is already very old, but I hope that you can show me a solution here. Our problem is that our product names, some of which consist of 2 letters, are not found in the search. I use Oxygen 26.1 and would like to know if there is an easy way to customize the search in my existing HTML template so that results are displayed from two characters.
Many thanks in advance for your support!
Re: Search for two-character term Fails -- Fix?
Posted: Wed Jul 03, 2024 12:01 pm
by marius
Hi,
It was a bug in the initial build of Oxygen 26.1 that was fixed in the next maintenance build. Please update your installation with the latest build available on our website::
image.png
Regards,
Marius
Re: Search for two-character term Fails -- Fix?
Posted: Wed Jul 03, 2024 4:32 pm
by Sergio_7
Awesome! That works! Many thanks, Marius!
Re: Search for two-character term Fails -- Fix?
Posted: Fri Jul 05, 2024 8:17 pm
by pacetti
I have just installed the latest build, and I am still seeing a similar issue.
If I want to find help topics for the query "Manage My Team(s)", no results are returned if "My" is included in the query.
Queries "Manage Team(s)", "Manage", and "Team(s)" return results as expected.
My stopwords file is as follows:
Code: Select all
// Auto generated list of analyzer stop words that must be ignored by search.
var stopwords = ["but","be","with","such","then","for","no","will","not","are","and","their","if","this","on","into","a","or","there","in","that","they","was","is","it","an","the","as","at","these","by","to","of"];
I do not have any include/exclude parameters set, either:
image.png
Re: Search for two-character term Fails -- Fix?
Posted: Mon Jul 08, 2024 10:40 am
by Costin
Hi pacetti,
We tested but did not obtain the reported behavior, using the latest build of Oxygen.
In order to look into this further, please send us a small sample topic which we could use to reproduce the issue at our side.
Regards,
Costin