Ah, there we go.
so the problem was when I used just add_term that's all it did - add
the term to the db. It didn't store the string and show it in the
results like I expected it to. So when I tried setting the values
equal to each other, it the value was stored as a string but wasn't
searchable. And since the UUID is 100% random, what was searchable and
what was showing up in the results were two different things.
In short, here's the solution:
*******************************8
__doc.data['thread'] = [threadid]
__doc.prepare()
self.writer.replace(__doc)
self.writer.flush()
self.writer.close()
**************************
The add_field_actions are apparently useless on already processed documents :(
Dominic