miki | 6 Apr 22:56
Picon
Gravatar

Re: update workflow


Hello,

> How do i delete/replace documents i consider old?
xappy.IndexerConnection has a "delete" method.
You can also get the document using it's ID and then call conn.replace
(doc)

HTH,
--
Miki <miki.tebeka@...>
http://pythonwise.blogspot.com

miki | 6 Apr 23:09
Picon
Gravatar

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)

miki | 6 Apr 23:22
Picon
Gravatar

Re: Loosing fields?


Hello All,

> I'm creating a database using the following function:
> ...
My bad, a bug in my code.

Sorry for your time.
--
Miki
Miki Tebeka | 1 May 03:02
Picon
Gravatar

Re: support for remote connections?


Hello Richard,

> means, within the next several months.  If you need it sooner, feel free to
> submit a patch (or sponsor someone to develop one)!
See http://code.google.com/p/xappy/issues/detail?id=29

I have something in these lines in my code currently.
I just got the configuration string from the database and stored it locally.

Thanks for a great product.

All the best,
--

-- 
Miki Tebeka <miki.tebeka@...>
http://mikitebeka.com
The only difference between children and adults is the price of the toys


Gmane