Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

boolen field indexes #250

Open
dougsyer opened this issue Sep 21, 2016 · 1 comment
Open

boolen field indexes #250

dougsyer opened this issue Sep 21, 2016 · 1 comment

Comments

@dougsyer
Copy link

i tried to add a index for a boolean field and I think that is causing a wierd issue. i looked at the zcatalog docs briefly and the implementation of the "monitored" index on the default component search and it looks like there is an index created for a boolean field but not a column ... I also noticed that there may be a different type of index for a boolean in zcat docs but i didnt read it thoroughly.

basically, i just need to search on a boolean in the catalog rather than have to use a string for it....I think what I need to do is to exclude that field from zenpacklib and add it in as a index only and not a column in my init but I wanted to see if the error im seeing can be duplicated.

basically when i go to model after adding a field index to a field boolean i get a zope location error during modeling.

also I did add this index after the fact and the second question I have is if i add a new field to the catalog Im assuming i need to write a migrate script to manually add it to existing devices or move them in and out of the model class?

@dougsyer
Copy link
Author

Yeah apparently you cant add a boolean field to an index i retested and when i do i get a zope location error even when i try to add the field index to the bool in dmd so looks like i may need to do a custom catalog with bool index and i may see if category index works because that seems really useful assuming it works with zenoss.

Hopefully someone can try to add a index on a bool to confirm. It didnt cause an error on reload it caused an error when i tried to index an object or during a model

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant