On Wed, Jan 24, 2007 at 04:13:11AM +0100, Andrew Edwards
wrote:> Hi,
>
> Given a numerical search term I want to avoid matching the model id as
> this has no real world significance when returned in the results (in
> this instance).
>
> For example the user may enter ''13'' when looking for a
product code.
> Presently they will also get back the product that has id 13.
what version of aaf do you use? the id is not supposed to be included in
queries, however it might be that this is the case in older versions.
[..]> acts_as_ferret :fields => {:id => { :index => :no }, :description
=> {},
> :manufacturer_code => {}}
>
> However this fails with "You can''t store the term vectors of
an
> unindexed field".
I don''t know if not indexing the id would be a good idea, since it is
used as a key field and needed for updates (delete old document by id,
add new one).
Jens
--
webit! Gesellschaft f?r neue Medien mbH www.webit.de
Dipl.-Wirtschaftsingenieur Jens Kr?mer kraemer at webit.de
Schnorrstra?e 76 Tel +49 351 46766 0
D-01069 Dresden Fax +49 351 46766 66