J’ai plusieurs modèles qui ont des zones texte et j’aimerai savoir
quel plugin vous conseillez pour faire une recherche textuelle sur un
ou plusieurs modèle à la fois et qui ne soit pas sensible à la casse
et aux accents.
J’ai regardé le screen cast effectivement ça à l’air facile
d’utilisation (si sphinx est installé). Je vais aussi regarder AAF
car mon hébergeur le propose en standard (gem)
Le serveur Sphinx en lui je crois pas :
“Currently built-in data sources support fetching data either via
direct connection to MySQL or PostgreSQL, or using XML pipe mechanism”
Je croise les doigts pour que tout marche (m’enfin les autres je sais
pas
plus si ils marchent) parce que Ferret est celui qui me semble de loin
le
plus Rubyesque et j’aimerai bien standardiser mes devs avec.
One of the major problems users hit when incorporating Sphinx into
their systems, is that there’s no way to update a single particular
document in the indexes. This may be a future feature, but until then,
the best way to keep your indexes current is to use delta indexes –
small indexes of any changes that have happened since you last did a
full index build.
How to enable this, though? Add a boolean field to your model, called
‘delta’, and add the following line into your define_index block:
set_property :delta => true
Then stop Sphinx, re-index, and start it up again. From that point,
any time an indexed model instance is changed, the delta index will be
rebuilt. Because it is only a small number of records, the rebuild
will happen quickly, and the changes are incorporated into searches.
However, you still need to run a full index regularly, otherwise the
delta index will get larger and larger, and your system will slow
down."
Mais bon il faut tout de même un cron pour “rebuilder” l’index de
temps en temps.
Si tu débutes dans le monde de la recherche et de l’indexation et que
tu as peu de compétences en admin, Sphinx n’est pas forcément le
meilleur choix. Mais sinon, effectivement, c’est plutôt pas mal