Cadasta / cadasta-platform

[DEPRECATED] Main repository of the Cadasta platform. Technology to help communities document their land rights around the world.
https://demo.cadasta.org
GNU Affero General Public License v3.0
53 stars 81 forks source link

Search only matches on exact strings #1118

Closed amplifi closed 7 years ago

amplifi commented 7 years ago

Steps to reproduce the error

Open any project, search for any partial term. Example: Project "Chocolate Factory" contains a party named David.

Actual behavior

Search returns zero results if there is no match for the exact string entered. Example: Searching "Chocolate Factory" for davi returns zero results.

Expected behavior

According to the requirements in #826, an exact string match should be conducted iff the search term is enclosed in quotation marks. A string entered without quotation marks should return the results that best match. Example: Searching for davi without quotes should return the party named David.

dpalomino commented 7 years ago

Thanks @amplifi for raising this and for all the explanations :)

@seav (see discussion #search channel) Do you think we could change this in Sprint 14?

khantaalaman commented 7 years ago

@dpalomino @amplifi Is the issue still persisting? It seems to be fixed to me.

Thanks!

amplifi commented 7 years ago

@khantaalaman This issue has not yet been fixed.

laura-barluzzi commented 7 years ago

Hi @seav, is this issue still open? I tried to use the search after entering inside my project but it looks like the search doesn't work with exact string either now.. it doesn't find any party name and resource name. Did it use to work for any exact string?