thank you for answering!

this is development. i am using thinking sphinx 1.3.14. and sphinx
0.9.9 (win32).

i found out that:
- i create horse1 and horse2.
- i set public value to horse1 to true. and i leave horse2 with public
value false.
- i run rake ts:rebuild
- then i search.
- first for horse1. ---> search finds a result. that is OK
- then for horse2. ---> search doesnt find a result. all cool.
- then i change public value to horse1 to false. i search for horse1 --
> search still finds a result. it shouldn't.
- the same happens if i set public value to true for horse2 --> search
doesnt find a result. it should.
- however if i change the attribute of horse2(i add some task) --> it
will find the result accordingly!!! accordingly to whatever the value
of public (true-finds,false-doesnt find) is set at the time i update a
task of a horse.
- as i was writing this i was trying numerous varieties and came to
conclusion and solution to my problem:
If i create new horse and even this horse has delta attribute by
default set to true the search wont find it(it doesnt matter for
search how i change the public value).
But if i explicitly when i update my attribute public write:
horse.public = true
horse.save
then the search will "see" the delta value this time and show the
results as it should! so it works ok if i do this.
maybe this is how these things are originally meant to be. but i just
thought if i create a horse with a delta value set to true. that the
search will check it. the whole of it.
so it looks like my database default value (for newly created horses)
has no meaning for my search even that if i call horse123.delta (newly
created) his delta will be true from the beginning on.

thanks again for answering though. roq

first i had
horse.update_attribute(:public, true) --> doesnt work ---> delta
allready set to true

now i have
horse.update_attribute(:public, true)
horse.public = true
horse.save  --> works --> delta also set to true (?!)


-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/thinking-sphinx?hl=en.

Reply via email to