Changes between Initial Version and Version 1 of Ticket #19316, comment 14


Ignore:
Timestamp:
Jan 3, 2025, 5:28:06 PM (4 weeks ago)
Author:
grexe

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #19316, comment 14

    initial v1  
    22This was also raised back in the day with #4636 but marked as invalid - I think the issue might have been similar infact.
    33
    4 1. there is no index type `bool`, so if you create a `Boolean` attribute in _FileTypes_, you won't be able to search for it [1]
    5 1. mkindex -t int actually creates an index for a int32 value and will only work with that. I tried creating an int8 attribute with FileTypes to save space (even that is a waste for a boolean...) and it would not work.
     41. there is no index type `bool`, so if you create a `Boolean` attribute in ''FileTypes'', you won't be able to search for it [1]
     51. `mkindex -t int` actually creates an index for an `int32` value and will only work with that. I tried creating an `int8` attribute with FileTypes to save space (even that is a waste for a boolean...) and it would not work.
    661. if you need to reindex, the changes might not be found (at least with the '-r` option to scan a whole directory. Seems I hit a caching problem with my SSD, 2nd time a bit later or providing the file explicitly it worked.
    77
     
    11111. reindex if needed - mind the cache!
    1212
    13 [1] mkindex -t option must be one of "int", "llong", "string", "float", or "double" and defaults to "string". This is what I accidentally did for my `starred` attribute.
    14 
    1513Regarding this issue, that means imo:
    16141. fix FileTypes to avoid this confusion - it needs a "Searchable" option similar to the "Editable" option, too, else we are giving away the coolest feature of Haiku(FS) and confuse users without any need, but that's another issue.
    17151. possibly introduce a boolean index - is this supported by BFS or would this require filesystem changes?
     16
     17[1] mkindex -t option must be one of "int", "llong", "string", "float", or "double" and defaults to "string". This is what I accidentally did for my `starred` attribute.