Opened 9 years ago

Last modified 6 years ago

#906 new defect

Quick search phrase search in collections finds all records that match search criteria

Reported by: erazlogo Owned by: dstillman
Priority: major Milestone:
Component: data layer Version: 1.5
Keywords: Cc:

Description

The search should be restricted only to records within a given collection but it searches the entire library. The same is happening with saved searches. This is a new error--searches worked fine earlier.

Change History (7)

comment:1 Changed 9 years ago by dstillman

I can't reproduce this. What field are you matching?

comment:2 Changed 9 years ago by dstillman

Only happens in phrase search mode.

comment:3 Changed 9 years ago by erazlogo

Actually, quick search without quotes doesn't find the search word in a snapshot at all in a collection, even if the same search in My Library finds that word in the same snapshot.

comment:4 Changed 9 years ago by dstillman

Does for me...

comment:5 Changed 9 years ago by erazlogo

Try a saved search (not a manual collection).

comment:6 Changed 9 years ago by dstillman

  • Component changed from interface to data layer
  • Milestone changed from 1.0.3 to 1.5 Alpha 1
  • Priority changed from critical to major
  • Summary changed from quick search in collections finds all records that match search criteria to Quick search phrase search in collections finds all records that match search criteria
  • Version changed from 1.0 to 1.5

Pushing this back. The post-search filter code (used for phrase searches) is a mess, and I don't have time to work on it now. We may also be able to get rid of it altogether in Firefox 3, which adds support for user-defined functions and may let us do SQL-based regexp searching. Doing everything in SQL would mean duplicating all text content in the database, but it may be worth it to avoid the insanity of trying to mix an SQL search and a non-SQL search in all the various modes (ANY/ALL, quicksearch, etc.).

In the meantime, it's not a critical bug. A phrase search within a collection is still possible with an advanced or saved search.

comment:7 Changed 6 years ago by dstillman

  • Milestone 2.0 Beta 3 deleted

Milestone 2.0 Beta 3 deleted

Note: See TracTickets for help on using tickets.