Displaying 20 results from an estimated 93 matches for "query_str".
2018 Sep 30
3
xapian parser bug?
On Sun, Sep 30, 2018 at 09:50:30AM +0100, James Aylett wrote:
> Note that I'm using 1.4.7, and from your output I believe you're not
> (the * in the query description I believe doesn't happen in those
> situations any more).
1.4.4 and later eliminate redundant 0 scaling factors, but this one
isn't actually redundant:
> > Query(((Tmail AND 0 * XSUBJECTnot at 1)
2006 Jul 20
2
search on fields
Hi,
I wonder if it is possible to perform the "find_by_contents" on a subset
of fields indexed in acts_as_ferret.If so, how?
In my code I have:
acts_as_ferret (:fields => [''title'', ''focus'', ''purpose''])
However, I like to have two search options one on all fields and one
only on the title.
Any help is most appreciated.
2009 Jul 08
1
php error parse_query
I'm having trouble getting a search via php working, I get the following
error:
*Fatal error*: No matching function for overloaded
'QueryParser_parse_query' in */usr/local/share/php5/xapian.php* on line
*1409
*The error occurs at this code
$query = $qp->parse_query( $query_string ,
XapianQueryParser::FLAG_PHRASE
| XapianQueryParser::FLAG_BOOLEAN
| XapianQueryParser::FLAG_LOVEHATE
| XapianQueryParser::FLAG_SPELLING_CORRECTION
);
I also tried
$query = $qp->parse_query($query_string);
It&...
2006 Sep 20
0
Mongrel 0.3.13.4 Pre-Release -- QUERY_STRING Fixed
...gement with an intuitive, user friendly
remote console
BR,
~A
-----Original Message-----
From: Jonathan [mailto:rise at knavery.net]
Sent: Thursday, September 21, 2006 11:49 AM
To: mongrel-users at rubyforge.org; zedshaw at zedshaw.com
Subject: Re: [Mongrel] [ANN] Mongrel 0.3.13.4 Pre-Release -- QUERY_STRING
Fixed
On Wed, 16 Aug 2006 17:14:34 -0700 Zed Shaw <zedshaw at zedshaw.com> wrote:
> Correction, NOW the win32 gems are up.
> I really gotta either get vmware or wine going for cross builds so I
> can automate this.
If it''d help I''ve got a VMware Workstatio...
2018 Sep 30
1
xapian parser bug?
On Sun, Sep 30, 2018 at 09:05:25AM -0300, David Bremner wrote:
> if (str.find (' ') != std::string::npos)
> query_str = '"' + str + '"';
> else
> query_str = str;
>
> return parser.parse_query (query_str, NOTMUCH_QUERY_PARSER_FLAGS, term_prefix);
I wouldn't recommend trying to generate strings to feed to QueryParser
like this code seems to be doing. QueryPar...
2006 Aug 16
8
Mongrel 0.3.13.4 Pre-Release -- QUERY_STRING Fixed
Hello Everyone,
I just posted another pre-release of Mongrel that fixes a bug which
caused Mongrel to claim it was getting parsing errors because the
QUERY_STRINGs were too long. In actuality it was shift in the parser
that made empty queries (/test?) become negative. This is fixed up now.
Here''s the full list of changes:
* It has a couple of fixes for win32, but I still have to apply a few
more patches from Jan Svitok. This will happen toni...
2007 Dec 28
1
Build Error in trunk (omega)
...tmp/omega.cc.orig 2007-12-28 14:04:40.000000000 -0800
+++ xapian-applications/omega/omega.cc 2007-12-28 14:04:52.000000000 -0800
@@ -201,7 +201,7 @@
for (Xapian::ESetIterator i = eset.begin(); i !=
eset.end(); i++) {
if ((*i).empty()) continue;
if (!query_string.empty()) query_string += ' ';
- query_string += pretty_tery(*i);
+ query_string += pretty_term(*i);
}
}
}
Cheers,
Rick
2005 May 23
16
Success - Rails, FastCGI, and IIS / Windows Server
About 17:00 localtime I managed to get fastcgi,
Rails and IIS all happy together.
Upon success I ripped off my clothes and ran through
the village yelling "The future is now!". A PDP-11
geezer stuck his head out a window and said "The future
isn''t what it used to be and keep yer shirt on".
Modifications were required to dispatch.fcgi and request.rb.
The following
2006 Apr 11
0
Page cache and query string
...9;s the case, could anyone familiar
with caching in Rails please point it out?
Basically I''m having the web server rewrite URLs of the form
http://www.site.com/foo/bar?a=b to
http://www.site.com/foo/bar/query/a=b. Then in config/routes.rb there
is:
map.connect(''foo/bar/query/:query_string'',
:controller => ''foo'',
:action => ''bar'')
In foo_controller.rb:
class FooController < ApplicationController
caches_page :bar
before_filter :merge_query_string
def bar
render :text => "You asked for #{par...
2008 May 08
1
query strings built by R method can''t handle multiple values from checkbox selections
query strings built by R method can''t handle multiple values from checkbox
selections
R(SomeRoute, :reply_status=>%w{1 2 4})
should return
query_string="
http://localhost:3301/someroute/?reply_status_id=1&reply_status_id=2&reply_status_id=4
"
qsp(query_string) -> {"reply_status_id"=>["1", "2", "4"]}
from camping_unabridged.rb
def R(c,*g)
p,h=/\(.+?\)/,g.grep(Hash)...
2006 Dec 21
4
Stubbing Kernel#open
Anyone know how to stub Kernel#open? I''m trying to mock/stub an
open-uri call, but it doesn''t seem to like it.
Here''s the test code, and the failures:
body = File.open(File.dirname(__FILE__) +
''/../fixtures/google_search_california.html'').read
2006 Sep 05
15
ferret finds ''tests'' but not ''test''
Hello all,
Quick question (possibly!) - I''ve got a few records indexed and doing a
search for ''test'' reports in no hits even though I know the word ''tests''
exists in the indexed field. Doing a search for ''tests'' produces a
result. I would have thought that ''test'' would match ''tests'' but no such
2014 Apr 13
2
Adding an external library to Xapian
...t;< endl;
+ // char *syns = findtheinfo(argv[2], ALL_POS, 23, ALLSENSES);
+ // cout << syns << endl;
// Open the database for searching.
Xapian::Database db(argv[1]);
+
// Start an enquire session.
Xapian::Enquire enquire(db);
@@ -59,18 +67,29 @@
string query_string(argv[2]);
argv += 3;
while (*argv && strcmp(*argv, "--") != 0) {
- query_string += ' ';
- query_string += *argv++;
+ query_string += ' ';
+ query_string += *argv++;
}
// Create an RSet with the listed docids in.
Xapian::RSet rset;...
2014 Apr 13
2
Adding an external library to Xapian
My code is not on Github. I am using the tarball as of now. The following
it the error that occurred:
http://pastebin.com/cVJrjUZX
On Sun, Apr 13, 2014 at 8:16 PM, James Aylett <james-xapian at tartarus.org>wrote:
> On 13 Apr 2014, at 15:37, Pallavi Gudipati <pallavigudipati at gmail.com>
> wrote:
>
> > A linker error is encountered even after following the above
2006 Nov 30
3
newbie: new_data_frame <- selected set of rows
...#prints top five hits just for debugging
What I want to do:
1) create a small top_five frame
sadly this does not work:
for(i in distances[1:5]) top_five[i,] <-
my_dataframe[i,]
2) after I got top_five I woul like to get the index
of my query entry, something along Pythons
top_five.index('query_string')
3) possibly combine values in distances with row names
from my_dataframe:
row_1 distance_from_query1
row_2 distance_from_query2
Thank you very much for your help
Darek Kedra
2007 Sep 24
2
ferret fuzzy matches
Hi guys,
Is there some way of getting ferret matches string, when i do a fuzzy
search?
The scenario is this:
1. The user search for ''show''
2. Nothing was found
3. So I do a fuzzy search, passing ''show~''
4. It gives me somes results, most of all was matched with ''showcase''
5. So I want to tell the user that: Nothing was found with
2018 Sep 30
0
xapian parser bug?
...>
Ah, OK, it must have something to do with the way that notmuch is using
field processors. And I see now that the following code (from
lib/regexp-fields.cc) is probably related (at least it explains
subject:" not" works)
if (str.find (' ') != std::string::npos)
query_str = '"' + str + '"';
else
query_str = str;
return parser.parse_query (query_str, NOTMUCH_QUERY_PARSER_FLAGS, term_prefix);
The motivation for not always triggering phrase processing is that it
breaks/disables wildcards. In particular this change was to fix the...
2010 Oct 28
1
hypens in words + NEAR + 3 terms + AND_MAYBE => crash
...[...]
my $qp = Search::Xapian::QueryParser->new();
my $stemmer = Search::Xapian::Stem->new("english");
$qp->set_stemmer($stemmer);
$qp->set_database($database);
$qp->set_stemming_strategy(STEM_SOME);
$qp->set_default_op(OP_AND_MAYBE);
$query_string = " x-y NEAR test NEAR test ";
my $query = $qp->parse_query($query_string, Search::Xapian::FLAG_DEFAULT);
[...]
Here's a gdb backtrace for a crash:
Program received signal SIGSEGV, Segmentation fault.
~TermGroup (yypParser=0x2b58170, yymajor=<value optimized out>,...
2008 Sep 16
0
[PATCH] Add set_max_wildcard_expansion method to the queryparser.
...9 @@ class XAPIAN_VISIBILITY_DEFAULT QueryParser {
/// Specify the database being searched.
void set_database(const Database &db);
+ /// Specify the maximum expansion of a wildcard term.
+ void set_max_wildcard_expansion(long);
+
/** Parse a query.
*
* @param query_string A free-text query as entered by a user
diff --git a/xapian-core/queryparser/queryparser.cc b/xapian-core/queryparser/queryparser.cc
index 9d9f2df..665d0b8 100644
--- a/xapian-core/queryparser/queryparser.cc
+++ b/xapian-core/queryparser/queryparser.cc
@@ -104,6 +104,12 @@ QueryParser::set_datab...
2006 Nov 13
6
mongrel_upload_progress question/possible suggestion
..._info to be a regex instead of just a string, thus
allowing for:
return unless params[''PATH_INFO''] =~ @path_info &&
params[Mongrel::Const::REQUEST_METHOD] == ''POST'' &&
upload_id = Mongrel::HttpRequest.query_parse
(params[''QUERY_STRING''])[''upload_id'']
Then I just update my handler like so:
uri "/",
:handler => plugin("/handlers/upload", :path_info =>
%r{/account/\d/\d/media/upload}),
:in_front => true
And everything works fine... It''s a super-small tweak,...