You are viewing the PKP Support Forum | PKP Home Wiki

The default full-text indexing in OJS

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

The default full-text indexing in OJS

Postby zain » Fri Dec 20, 2013 10:43 pm

Hi ,
Could I get an answer for the following questions?

I would like to know if the default full text indexing support multilanguage ?
If yes ,DO I need to have a stop-words file for every language I need to work with ?
The last one,what about the the following function in the file classes/search/ArticleSearch.inc.php ,Is it working on multiple languages ?
Code: Select all
function _parseQuery($query) {
      $count = preg_match_all('/(\+|\-|)("[^"]+"|\(|\)|[^\s\)]+)/', $query, $matches);
      $pos = 0;
      $keywords = ArticleSearch::_parseQueryInternal($matches[1], $matches[2], $pos, $count);
      return $keywords;

Thanks in advance,
Posts: 15
Joined: Mon Oct 21, 2013 3:19 pm

Re: The default full-text indexing in OJS

Postby asmecher » Sat Dec 21, 2013 12:57 am

Hi Zain,

Yes, full-text indexing is multilingual. However, there's only a single set of stopwords used -- it's in lib/pkp/registry/stopwords.txt.

Alec Smecher
Public Knowledge Project Team
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Re: The default full-text indexing in OJS

Postby zain » Sat Dec 21, 2013 5:42 pm

Thanks for respond .
Posts: 15
Joined: Mon Oct 21, 2013 3:19 pm

Return to OJS Technical Support

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Yahoo [Bot] and 3 guests