Opened 9 years ago

Closed 8 years ago

#12811 closed bug (invalid)

Queries on file's attributes doesn't properly works.

Reported by: Giova84 Owned by: axeld
Priority: normal Milestone: Unscheduled
Component: File Systems/BFS Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

hrev50336 but I always seen this behaviour on Haiku, IIRC.

Well, on my system I have some mime types for the application "Remember" (the mime type is text/x-event) these "Event" files contain some advanced attributes also present in the index (I added them using mkindex):

Text         "event:where"
Text         "event:what"
'TIME'       "event:when"

If i do a query via the Find window on the Event files, eg searching for the attribute "event:where" with the string "Here", the result of the query's window will not show anything, but if I move the Event file which contains such string - eg on the Desktop or in any other folder -, the result of the query's window will be properly populated.

Every time, to see a result, I have to move the file in any other folder.

I made the example with the "Event" files, but the trouble will also occur with any other file (also Image file, eg searching in the attribute "Comment")

http://s33.postimg.org/dusfuk0of/Query_on_attributes.png

Change History (1)

comment:1 by axeld, 8 years ago

Resolution: invalid
Status: newclosed

There are exactly two reasons this might happen:

  1. You created the index after the attribute had been written. You need to use the reindex tool to fill the index with current data.
  2. The index is invalid, and cannot be written to.

The second case could be verified by running checkfs. The first case would be a user error or feature request. Either way, I'm closing this ticket, as the index and query mechanism works fine wrt what the summary says.

Note: See TracTickets for help on using tickets.