Tracker: Bug Reports

5 Search function fails to return all hits - ID: 3506748
Last Update: Comment added ( rgdobie )

When using the General Search, a record is not returned if the search string is contained in the Last Change field as well as in the Name field.

For example :
I log on as rgdobie
When using Advanced search to search exactly for a surname of Dobie, I get 99 matches
Sorting by the Last Change field shows me that 38 of these have a value and 61 have no value.
When using the general search (with 'Exclude some non-genealogical data' set on) and searching for Dobie I get 61 matches - those records with no value in the Last Change field.

I believe the missing records are excluded because of the dobie found in the Last Change. They should only be excluded if that is the only match. If a legitimate match is found, in say the Name field, these records should be returned.

Regards
Richard Dobie


rgdobie ( rgdobie ) - 2012-03-16 23:48:29 PDT

5

Open

None

Nobody/Anonymous

None

v4.3.0

Public


Comments ( 2 )

Date: 2012-03-27 04:53:29 PDT
Sender: rgdobie

Thanks, George.
I look forward to seeing it.


Date: 2012-03-26 21:30:03 PDT
Sender: ggpauly

Richard,

I agree that this is a bug.

You can modify the behavior by switching $tagfilter to "off" in line 63 of
file includes/controllers/search_ctrl.php.

However, this will result in potentially unwanted search hits on the last
change _PGVU tag as well as several other tags.

There is also the workaround of using advanced search, which is not
affected.

This bug exists in function search_indis of file
includes/functions/functions_db.php.

A fix for this bug will require more study of the function when I have
time.

Thanks for the catch and accurate diagnosis,

George



Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.