Opened 17 years ago
Closed 17 years ago
#340 closed defect (fixed)
Search engine does not return all hits when doing non-exact matches
| Reported by: | bweaver | Owned by: | bweaver |
|---|---|---|---|
| Priority: | blocker | Milestone: | TTT Snapshot |
| Component: | Search Engine | Version: | 1.5.1034 |
| Severity: | Keywords: | ||
| Cc: | Database Engine: | N/A | |
| Operating System: | N/A |
Description
In certain cases, search engine does not return all possible hits when doing non-exact matches, such as 2008* or Fran*. There is a bug in the B+ tree code which does not properly spin across the leaf nodes until all matches have been located.
Change History (3)
comment:1 by , 17 years ago
| Status: | new → addressed |
|---|
comment:2 by , 17 years ago
| Status: | addressed → released |
|---|
comment:3 by , 17 years ago
| Resolution: | → fixed |
|---|---|
| Status: | released → closed |
Since this is almost impossible to test without having intimate knowledge of how the data is stored (and therefore knowing which data to query for to see this particular edge case), I am closing this one myself. I verified it by programmatically remembering the number of keywords starting with "2008" at index creation time, then compared that number against the hit results of performing a right-hand like search after the index creation was completed. The numbers matched exactly so I deemed this bug fixed and am marking this ticket as closed/fixed.

(In [1037]) Fixes #339 - changed search command processing code to delay resolving id's for quoted terms until after all hits have been gathered and compared, leaving only hits with valid keywordoffsets.
Fixes #340 - B+ tree problem -- when keyword hits spanned multiple leaf nodes, leaf node search code was not properly loading its right sibling leaf node and continuing to fill matches. Only applies to right-hand likes (aka 'StartsWith' KeywordMatchMode) because left-hand likes simply traverses all leaf nodes to find hits. Right-hand ones do a normal search for the beginning substring, then spin across leaves until keyword matches run out. The 'spin across' part wasn't working right.
Added more admin tool forms for Search Engine