Displaying 6 results from an estimated 6 matches for "get_database".
Did you mean:
set_database
2015 May 10
2
[LLVMdev] http://llvm.org/perf/ instability: some clues
...site-packages/LNT-0.4.1dev-py2.7.egg/lnt/serve
r/ui/app.py", line 76, in get_testsuite
testsuites = self.get_db().testsuite
File
"/opt/venv/perf/lib/python2.7/site-packages/LNT-0.4.1dev-py2.7.egg/lnt/serve
r/ui/app.py", line 55, in get_db
self.db = current_app.old_config.get_database(g.db_name, echo=echo)
File
"/opt/venv/perf/lib/python2.7/site-packages/LNT-0.4.1dev-py2.7.egg/lnt/serve
r/config.py", line 148, in get_database
return lnt.server.db.v4db.V4DB(db_entry.path, self, echo=echo)
File
"/opt/venv/perf/lib/python2.7/site-packages/LNT-0.4.1dev-py2....
2012 Jan 04
2
[issue] The difference between QueryParser::FLAG_AUTO_SYNONYMS and QueryParser::FLAG_AUTO_MULTIWORD_SYNONYMS
...G_AUTO_MULTIWORD_SYNONYMS. See the below source code part from "queryparser.lemon"
...
1358 subqs.reserve(terms.size());
1359 if (state->flags & QueryParser::FLAG_AUTO_MULTIWORD_SYNONYMS) {
1360 // Check for multi-word synonyms.
1361 Database db = state->get_database();
...
2008 Sep 16
0
[PATCH] Add set_max_wildcard_expansion method to the queryparser.
...&default_prefix)
diff --git a/xapian-core/queryparser/queryparser.lemony b/xapian-core/queryparser/queryparser.lemony
index b6dc261..e723ebc 100644
--- a/xapian-core/queryparser/queryparser.lemony
+++ b/xapian-core/queryparser/queryparser.lemony
@@ -226,6 +226,10 @@ class State {
Database get_database() const {
return qpi->db;
}
+
+ long get_max_wildcard_expansion() {
+ return qpi->max_wildcard_expansion;
+ }
};
string
@@ -335,6 +339,8 @@ Term::as_wildcarded_query(State * state_) const
Database db = state_->get_database();
vector<Query> subqs;
list&...
2012 Jan 05
1
Enhance synonyms feature of the query parser (patch included)
...First try the unstemmed term:
string term;
+ #ifndef HAVE_SYNONYMS_ENH
if (!piter->empty()) {
term += *piter;
if (prefix_needs_colon(*piter, name[0])) term += ':';
}
+ #endif
term += name;
Xapian::Database db = state->get_database();
***************
*** 319,334 ****
--- 321,347 ----
if (syn == end && stem != QueryParser::STEM_NONE) {
// If that has no synonyms, try the stemmed form:
term = 'Z';
+ #ifndef HAVE_SYNONYMS_ENH
if (!piter->empty()) {
te...
2016 May 05
2
GSoC 2016 - Introduction
Hello,
Thanks James for the reply. That cleared a few things out. Apologies for
replying late because of exams going on.
I was going through the previous clustering API to understand how it worked
and it seems like the the approach for construction of the termlists which
are used for distance metrics use TF-IDF weighting with cosine similarity,
which is very similar to the approach I would need
2006 Dec 06
1
Bug and patch for +terms with wildcards
...Parser queryparser;
+ unsigned flags = Xapian::QueryParser::FLAG_WILDCARD |
+ Xapian::QueryParser::FLAG_LOVEHATE;
+ queryparser.set_stemmer(Xapian::Stem("english"));
+ queryparser.set_stemming_strategy(Xapian::QueryParser::STEM_ALL);
+ Xapian::Database db = get_database("apitest_simpledata");
+ queryparser.set_database(db);
+ Xapian::Enquire enquire(db);
+
+ Xapian::Query qobj = queryparser.parse_query("th*", flags);
+ enquire.set_query(qobj);
+ Xapian::MSet mymset = enquire.get_mset(0, 10);
+ // Check that 6 documents were re...