Displaying 2 results from an estimated 2 matches for "document_text".
2006 Mar 29
1
Using boolean terms in PHP bindings
...itself? Like, literally prefix it with the characters "XC"?
Below is my indexor for scriptindex and the my php code...
document_id : field=ref unique=Q boolean=Q
search_id : field=document_id index=S
document_title : field=title weight=3 unhtml index
landing_page : field=landing_page
document_text : field=document_text unhtml index
abstract: field=abstract
category: field=category boolean=XC
- - - - - -
php
- - - - - -
//load the module
dl ("xapian.so");
//report all errors
error_reporting (E_ALL);
$db = new_database ("/www/servers/util/omega/test/de...
2007 Sep 13
5
refreshing indexes?
...system). So the queries will have to be restricted to those documents
owned by the groups the user belongs to. I have a group_id in each
record and the session has the group_id''s of the groups the user
belongs to in an array.
Question 1:
If I add acts_as_ferret :fields => [:group_id, :document_text] can I
do an activerecord search like...
Document.find(:all, :conditions => [''group_id in (?)'', session[:group_ids]) ?
Question 2:
These documents are dynamic, so they are deleted, updated, edited etc.
How do I handle indexing in these circumstances? Delete all and
recreate -o...