Closed jpadilla closed 7 years ago
Failing test is unrelated to my work, but seemed to start failing late last night, possibly something with date/time issues?
@jpadilla Esos failing tests lo arreglé en master. Era un error en los tests como tal que inserté por error.
@jpadilla esto está ready?
@gcollazo yup, try it out. En los tests hay ejemplos de búsquedas.
@jpadilla,
Hice varias pruebas y pude notar que cuando hago un search sin usar city:
o tags:
no se toma en cuenta esos fields en la búsqueda.
Sugerencias para discutir:
city:
o tags:
la búsqueda se debe realizar en los campos de first_name
, last_name
, username
, city
, state
, tags
, bio
, twitter_username
, facebook_username
y github_username
. No estoy seguro si añadir email
a esta búsqueda también.field:
en la búsquedafield:
. Ej. city:San Juan
.@jpadilla @gcollazo Should we try to resolve this issue?
@froi not worth it as is, we can tackle this later if we want.
WIP attempt to fix #25. Implemented a custom manager with djorm-ext-pgfulltext to make use of PostgreSQL's unaccent function. The custom manager works well with sqlite on development, without having the unaccent function present. The manager implements "full-text" search for first and last name for now. Might be able to expand it to city, but not for tags(because they are available as a many to many relationship).
Check out the UserSearchModelTestCase for usage examples.