Jump to content

Amend field


Recommended Posts

Is there a way i can amend a field to simply add more data to the end of whats already there


d_id  corpus


1    (3, 17)|(9, 17)

2    (4, 6)

3    (89, 97)


mysql_query("update `dic` set `corpus`='|(2, 12)' where `d_id`='3'"); //amend field with this query


so after update row 3 will now be  (89, 97)|(2, 12)


Link to comment
Share on other sites

as far as i know mysql cant search for corpus pairs, so is used only to retrieve pointers in the inverted doc.


so a paired set like {21,4|45,5|78,9}  means word "funny" appears in doc 4 at position 21 etc..


Ive read you can also use skipping to make the retrieval faster


..but for now im experimenting all methods

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.