I will look at this asap but thank you for testing web2py-haystack!
On Tuesday, 10 December 2013 03:50:17 UTC-6, Alex Bush wrote:
>
> Hello all,
>
> I have an issue when using web2py-haystack and I hope somebody here will
> be able to help me. I understand that this plugin is an experimental
> plugin, but I am using this plugin in its simplest form (without an
> external search backend) and unmodified.
>
> The issue appears when I attempt to modify a record once it has been
> inserted and indexed (through appadmin and using sqlforms in controllers).
> Upon modifying the records, the index appears updated with the new data but
> the actual records is not updated. The schema is not a complex schema and I
> can replicate this using a simplified scheme with a single table and three
> fields of which all are indexed.
>
> Attached is the schema I have been able to replicate this issue with, and
> both the table, updated table (1), index and updated index (1).
>
> Any help or direction with debugging this issue would be greatly
> appreciated!
>
> (edit: added snippit from db.py and console output from DEBUG flag in
> haystack. Record also refuses to delete.)
>
> ## after defining tables, uncomment below to enable auditing
> # auth.enable_record_versioning(db)
>
>
> db.define_table('test',
> Field('name'),
> Field('blurb', 'text'),
> Field('body', 'text'),
> format='%(name)s')
>
> from plugin_haystack import Haystack
> index = Haystack(db.test)
> index.indexes('name','blurb','body')
>
>
> after insert <Row {'body': 'This is a test body', 'name': 'This is a test
> name',
> 'blurb': 'This is a test blurb'}> 1
>
> haystack_test.id,haystack_test.fieldname,haystack_test.keyword,haystack_test.rec
> ord_id
> 1,name,this,1
> 2,name,test,1
> 3,name,name,1
> 4,blurb,this,1
> 5,blurb,test,1
> 6,blurb,blurb,1
> 7,body,this,1
> 8,body,test,1
> 9,body,body,1
>
> ____
> test record
> test.id test.name test.blurb test.body
> 1 This is a test name This is a test blurb This is a test body
> ____
>
> before update <Set (test.id = 1)> {'body': 'This is a test body1', 'name':
> 'This
> is a test name1', 'blurb': 'This is a test blurb1'}
>
> haystack_test.id,haystack_test.fieldname,haystack_test.keyword,haystack_test.rec
> ord_id
> 1,name,this,1
> 2,name,test,1
> 4,blurb,this,1
> 5,blurb,test,1
> 7,body,this,1
> 8,body,test,1
> 10,name,name1,1
> 11,blurb,blurb1,1
> 12,body,body1,1
>
> ___
> test record after update
> test.id test.name test.blurb test.body
> 1 This is a test name This is a test blurb This is a test body
> ___
>
> before delete <Set (test.id = 1)>
>
> haystack_test.id,haystack_test.fieldname,haystack_test.keyword,haystack_test.rec
> ord_id
>
>
>
>
>
> Version 2.7.2-stable+timestamp.2013.10.07.13.52.24
>
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.