Category search can't find by full name #3260

Closed
opened 2022-08-26 10:56:09 +00:00 by strump · 3 comments
Member

Steps to reproduce:

  • OrgancMaps for iPad v.2022.08.23-3, or OM for Android v.2022.07.27-3
  • Set Ukrainian locale
  • Open Organic maps and create new POI
  • In categories search enter "Витвір"

Expected result: Category "Витвір мистецства" (which means Artwork) is found
Actual result: No categories found

But if I search by "Твір мистецтва" or "Скульптура" then category is found:

Looks like NewFeatureCategories::Search(std::string const & query) method only looks for string from categories.txt but ignores type_strings.txt.

**Steps to reproduce:** * OrgancMaps for iPad v.2022.08.23-3, or OM for Android v.2022.07.27-3 * Set Ukrainian locale * Open Organic maps and create new POI * In categories search enter "Витвір" **Expected result:** Category "Витвір мистецства" (which means Artwork) is found **Actual result:** No categories found <img src="https://user-images.githubusercontent.com/720808/186888306-d3252de9-4583-44e2-b1a0-0631c60a6889.png" width="300"/> But if I search by "Твір мистецтва" or "Скульптура" then category is found: <img src="https://user-images.githubusercontent.com/720808/186888488-f469b064-1097-4952-9c1f-1f3dee1ed42a.png" width="300px"/> <img src="https://user-images.githubusercontent.com/720808/186888494-0d30b0ff-3eb5-4fbe-94b2-b779c891df94.png" width="300px"/> Looks like `NewFeatureCategories::Search(std::string const & query)` method only looks for string from `categories.txt` but ignores `type_strings.txt`.
Member

i just had a similar issue, i submitted a temporary fix, but using type_strings.txt would be much better 👍

https://git.omaps.dev/organicmaps/organicmaps/issues/3250 i just had a similar issue, i submitted a temporary fix, but using `type_strings.txt` would be much better 👍
biodranik commented 2022-08-27 19:59:19 +00:00 (Migrated from github.com)

@vng what if we merge types strings into loaded categories?

@vng what if we merge types strings into loaded categories?
vng commented 2022-08-28 05:48:36 +00:00 (Migrated from github.com)
  • Having all types as search categories is not a good idea
  • Search categories should inherit type strings as we discussed for many times
  • I suspect that this issue not only about category-type strings. Strange behaviour according to screenshots, should investigate.
- Having _all_ types as search categories is not a good idea - Search categories should _inherit_ type strings as we discussed for many times - I suspect that this issue not only about category-type strings. Strange behaviour according to screenshots, should investigate.
This repo is archived. You cannot comment on issues.
No labels
Accessibility
Accessibility
Address
Address
Android
Android
Android Auto
Android Auto
Android Automotive (AAOS)
Android Automotive (AAOS)
API
API
AppGallery
AppGallery
AppStore
AppStore
Battery and Performance
Battery and Performance
Blocker
Blocker
Bookmarks and Tracks
Bookmarks and Tracks
Borders
Borders
Bug
Bug
Build
Build
CarPlay
CarPlay
Classificator
Classificator
Community
Community
Core
Core
CrashReports
CrashReports
Cycling
Cycling
Desktop
Desktop
DevEx
DevEx
DevOps
DevOps
dev_sandbox
dev_sandbox
Directions
Directions
Documentation
Documentation
Downloader
Downloader
Drape
Drape
Driving
Driving
Duplicate
Duplicate
Editor
Editor
Elevation
Elevation
Enhancement
Enhancement
Epic
Epic
External Map Datasets
External Map Datasets
F-Droid
F-Droid
Fonts
Fonts
Frequently User Reported
Frequently User Reported
Fund
Fund
Generator
Generator
Good first issue
Good first issue
Google Play
Google Play
GPS
GPS
GSoC
GSoC
iCloud
iCloud
Icons
Icons
iOS
iOS
Legal
Legal
Linux Desktop
Linux Desktop
Linux packaging
Linux packaging
Linux Phone
Linux Phone
Mac OS
Mac OS
Map Data
Map Data
Metro
Metro
Navigation
Navigation
Need Feedback
Need Feedback
Night Mode
Night Mode
NLnet 2024-06-281
NLnet 2024-06-281
No Feature Parity
No Feature Parity
Opening Hours
Opening Hours
Outdoors
Outdoors
POI Info
POI Info
Privacy
Privacy
Public Transport
Public Transport
Raw Idea
Raw Idea
Refactoring
Refactoring
Regional
Regional
Regression
Regression
Releases
Releases
RoboTest
RoboTest
Route Planning
Route Planning
Routing
Routing
Ruler
Ruler
Search
Search
Security
Security
Styles
Styles
Tests
Tests
Track Recording
Track Recording
Translations
Translations
TTS
TTS
UI
UI
UX
UX
Walk Navigation
Walk Navigation
Watches
Watches
Web
Web
Wikipedia
Wikipedia
Windows
Windows
Won't fix
Won't fix
World Map
World Map
No milestone
No project
No assignees
3 participants
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: organicmaps/organicmaps-tmp#3260
No description provided.