Loosing fields?
Hello,
I'm creating a database using the following function:
FREETEXT = xappy.FieldActions.INDEX_FREETEXT
STORE = xappy.FieldActions.STORE_CONTENT
EXACT = xappy.FieldActions.INDEX_EXACT
SORTABLE = xappy.FieldActions.SORTABLE
def create_db(path):
db = xappy.IndexerConnection(path)
def add(field, flags):
for flag in flags:
if type(flag) == tuple:
flag, kw = flag
else:
kw = {}
db.add_field_action(field, flag, **kw)
add("title", ((FREETEXT, {"weight" : 5}), STORE))
add("content", (FREETEXT, ))
for name in ("id", "tags", "source" , "companies", "people",
"locations"):
add(name, (EXACT, STORE))
add("time", (EXACT, STORE, (SORTABLE, {"type" : "float"})))
db.close()
However when I query the db for the fields it has I see on the
"content" field:
(Continue reading)