[Brug-talk] Ferret - sphinx - Solr
Peter De Berdt (10-forward)
peter at 10-forward.be
Thu Jan 24 03:48:51 EST 2008
On 23 Jan 2008, at 23:19, Peter Vandenabeele wrote:
> I am now working my way through the Sphinx 0.9.8 config file to put
> more details
> in it than the default test1 / documents example and bumped into
> this. From the
> last line (about backwards compatibility), I may understand that
> this is a new
> feature in the 0.9.8 version.
You're right, I saw the allow_star config parameter and had set it,
but with no result. I must have made a mistake somewhere.
Which brings me to a new problem: indexing virtual attributes, both
on the main record and related records.
It does happen quite often for us that certain fields are stored in
English in the database (by internal convention), but should be
stored as the combination of all available languages in the
application in the index. E.g. the database will hold a boolean
"published" which will be set to either true or false, but the index
holds "gepubliceerd published publié". I know I could use a
before_save filter to save the virtual attribute to the database and
then index it that way, but it's something I'd really rather avoid.
This is just a basic example, but there are cases that would be more
complex.
Have I missed something here or is it effectively impossible to use
one of the sphinx plugins to include virtual attributes in the index?
Best regards.
Peter De Berdt
______________________
10-forward
Zwarteweg 28
B-8433 Middelkerke
Mobile : (0473) 38 35 86
info at 10-forward.be
http://www.10-forward.be
______________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/brug-talk/attachments/20080124/9bfe4e42/attachment.html
More information about the Brug-talk
mailing list