We are moving to Git Issues for bug tracking in future releases. During transition, content will be in both tools. If you'd like to file a new bug, please create an issue.

Bug 2324 - Add stupidity check for keyword indexing
Add stupidity check for keyword indexing
Product: OHS
Classification: Unclassified
Component: Indexing
PC Linux
: P2 normal
Assigned To: Alec Smecher
Depends on:
  Show dependency treegraph
Reported: 2006-07-10 12:08 PDT by Alec Smecher
Modified: 2006-07-10 14:51 PDT (History)
1 user (show)

See Also:
Version Reported In:
Also Affects:


Note You need to log in before you can comment on or make changes to this bug.
Description Alec Smecher 2006-07-10 12:08:07 PDT
In some cases, the pseudocode:

SELECT keyword_id FROM keywords WHERE keyword_text = 'SOMETHING';
  INSERT INTO keywords (keyword_text) VALUES ('SOMETHING');

...will fail with a duplicate if the text in question has certain keyword
sequences in it (invalid? odd lengths?). Add a stupidity checker that skips the
indexing of the keyword in this situation.
Comment 1 Alec Smecher 2006-07-10 14:51:57 PDT
Modified files:
- classes/db/DAO.inc.php
- classes/search/SearchDAO.inc.php
- classes/search/SearchIndex.inc.php