Displaying 6 results from an estimated 6 matches for "newdocument".
2008 Sep 27
3
Query::MatchAll
Why there still been rank when using Query::MatchAll() ?
2007 Apr 03
2
Some cryptic error in IE
...No such interface supported undefined
Error
-2146828218
Permission denied
Permission denied
Code Base:
URL = ''/ParserServlet?action=ajaxnews'';
new Ajax.Request(URL, {
method: ''get'',
onSuccess: function(transport) {
var newsDoc = transport.responseXML;
var newDocument = processor.transformToDocument(newsDoc);
$(''_loadingId'').update('''');
$(''_content'').update('''');
$(''_content'').appendChild(newDocument.firstChild);
},
onError: function(transport,exception){
alert("E...
2015 Jan 20
2
Question on "single writer, multiple reader"
On Sun, Jan 18, 2015 at 04:25:29PM +0000, James Aylett wrote:
> That?s exactly how it?s supposed to work. ?Eventually? (once the
> writer gets sufficiently far ahead of the reader), the reader will get
> a DatabaseModifiedError and will have to re-open the database, but
> until then it?s up to it when it does so. You may wish to do it every
> N requests, or every K seconds, or only
2005 Mar 31
1
omindex and scriptindex question
...ppening with scriptindex.cc
While this is happening ?
Another question is why in omindex.cc the term possition starts with 0 while
in scriptindex it starts from 1 ?
Code snippet from omindex.cc
// Add postings for terms to the document
Xapian::termpos pos = 1;
pos = index_text(title, newdocument, stemmer, pos);
pos = index_text(dump, newdocument, stemmer, pos + 100);
pos = index_text(keywords, newdocument, stemmer, pos + 100);
Code snippet from scriptindex.cc
Xapian::termpos wordcount = 0;
...........
for (i = v.begin(); i != v.end(); ++i) {
......................
case Action::IN...
2013 Oct 13
2
trouble with user's right indexing with omega
...uot;I at ftp" dbb/
term `I at ftp' not in database
That's wrong, user "ftp" can read this file.
As this user is not in "users" group, this user cannot find this file.
In omindex.cc, if I comment "inc_tag_added":
if (group) {
newdocument.add_boolean_term(string("I#") + group);
//inc_tag_added = true;
}
all is ok:
# delve -t "I at ftp" dbb/
Posting List for term `I at ftp' (termfreq 1, collfreq 0): 1
Why user's right are ignore when group has read right in the file? Is a
nor...
2009 Feb 12
1
problem when using xapian's static libs in windows
...data> <document terms>" << endl;
exit(1);
}
// Catch any Xapian::Error exceptions thrown
try {
// Make the database
Xapian::WritableDatabase database(argv[1], Xapian::DB_CREATE_OR_OPEN);
// Make the document
Xapian::Document newdocument;
// Put the data in the document
newdocument.set_data(string(argv[2]));
// Put the terms into the document
for (int i = 3; i < argc; ++i)
{
newdocument.add_posting(argv[i], i - 2);
}
// Add the document to the database
dat...