Displaying 8 results from an estimated 8 matches for "default_prefix".
2018 Aug 09
2
Boosted fields search in Python
Hi,
I'm using Xapian in Python2. I'm trying to replicate an analysis that
somebody else performed in Lucene. To do that I need to do a search for a
multi-word query in which particular fields are boosted - preferably at
query time. That is, given a query like "the cat is lying on the mat" (with
an OR operator, ignoring word positions but with stemming and stop words
removed),
2018 Aug 09
0
Boosted fields search in Python
...discusses this, and has sample code in python. I'd read from the beginning, including the core concepts. (https://getting-started-with-xapian.readthedocs.io/).
It also shows how to use the QueryParser to split and stem user-inputted queries into Xapian Query objects. You'll want to set the default_prefix when you call QueryParser::parse_query (this is covered in the concepts section of the getting started guide: https://getting-started-with-xapian.readthedocs.io/en/latest/concepts/indexing/terms.html?highlight=default_prefix#fields-and-term-prefixes).
You'll end up with python that looks a lit...
2008 Jun 09
3
Rails 2.1 and ddatetime_select
I''ve updated to 2.1 and am continuing to have issues with
datetime_select helpers which worked fine previously.
Example:
<% form_remote_tag(:url => { :controller => ''notes'',
:action
=> :add_booking_note_ajax,
:id => @booking},
2010 Feb 01
0
Solaris core dump
...fdcf8998) at backends/flint/flint_spelling.h:46
#5 0xfe20dcb0 in Xapian::Database::get_spelling_suggestion (this=0x75b5a8,
word=@0xfdcf8998, max_edit_distance=2) at include/xapian/base.h:476
#6 0xfe39ba90 in Xapian::QueryParser::Internal::parse_query (this=0x75b590,
qs=@0x798288, flags=128, default_prefix=@0xfdcf8a44)
at queryparser/queryparser.lemony:948
#7 0xfe38fa0c in Xapian::QueryParser::parse_query (this=0x798218,
query_string=@0x798288, flags=128, default_prefix=@0xfdcf8be0)
at include/xapian/base.h:154
#8 0xfe5551f0 in _wrap_QueryParser_parse_query (self=0x0, args=0x712648)
at...
2010 Oct 28
1
hypens in words + NEAR + 3 terms + AND_MAYBE => crash
...yy_pop_parser_stack (pParser=0x2b58170)
at queryparser/queryparser_internal.cc:2039
#4 0x00007faab750cf58 in ParserHandler::~ParserHandler() ()
from /usr/local/lib/libxapian.so.22
#5 0x00007faab7508e0d in Xapian::QueryParser::Internal::parse_query (
this=0x38b7a90, qs=..., flags=0, default_prefix=<value optimized out>)
at queryparser/queryparser.lemony:1176
#6 0x00007faab750003a in Xapian::QueryParser::parse_query (this=0x37b1a10,
query_string=..., flags=135, default_prefix=...)
at queryparser/queryparser.cc:118
#7 0x00007faab77cffcc in XS_Search__Xapian__QueryParser_...
2010 Feb 01
2
Xapian core dumping on Solaris
...cf8998) at backends/flint/flint_spelling.h:46
#5 0xfe20dcb0 in Xapian::Database::get_spelling_suggestion (this=0x75b5a8,
word=@0xfdcf8998, max_edit_distance=2) at include/xapian/base.h:476
#6 0xfe39ba90 in Xapian::QueryParser::Internal::parse_query (this=0x75b590,
qs=@0x798288, flags=128, default_prefix=@0xfdcf8a44)
at queryparser/queryparser.lemony:948
#7 0xfe38fa0c in Xapian::QueryParser::parse_query (this=0x798218,
query_string=@0x798288, flags=128, default_prefix=@0xfdcf8be0)
at include/xapian/base.h:154
#8 0xfe5551f0 in _wrap_QueryParser_parse_query (self=0x0, args=0x712648)...
2008 Sep 16
0
[PATCH] Add set_max_wildcard_expansion method to the queryparser.
...ueryParser::set_database(const Database &db) {
internal->db = db;
}
+void
+QueryParser::set_max_wildcard_expansion(long max)
+{
+ internal->max_wildcard_expansion = max;
+}
+
Query
QueryParser::parse_query(const string &query_string, unsigned flags,
const string &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...
Overriding date_select in local project to use custom value rather than blank for starting option...
2005 May 08
3
Overriding date_select in local project to use custom value rather than blank for starting option...
I would like to have a date control on a page and I would like a
behavior similar to what you get using date_select with the
:include_blank => true option where the first value in the dropdown is
"- Month -", "- Day -", or "- Year -" rather than a blank value for
the respective month, day, and year select fields.
I took a look at the ruby source for