Displaying 20 results from an estimated 4000 matches similar to: "QueryParser::stoplist_begin() behaviour"
2006 Apr 13
3
QueryParser doesn''t use StandardAnalyzer correctly?
I am having a bit of a problem with my search queries being parsed
correctly it seems, and I wonder if anyone else has experienced this.
I have written an index using StandardAnalyzer for analysis. I want to
search that index by passing my user query through a QueryParser
instance which is also using a StandardAnalyzer. However the resultant
query does not seem to be a valid term query and
2012 Jan 04
2
[issue] The difference between QueryParser::FLAG_AUTO_SYNONYMS and QueryParser::FLAG_AUTO_MULTIWORD_SYNONYMS
I don't know whether this is a BUG or for special purpose...
According to the definition of "xapian/queryparser.h", FLAG_AUTO_MULTIWORD_SYNONYMS contains bit of
FLAG_AUTO_SYNONYMS .
Therefore, long as I set the parse flag with FLAG_AUTO_SYNONYMS, the query parser will automatically activate
the function of FLAG_AUTO_MULTIWORD_SYNONYMS. See the below source code part from
2010 Nov 02
1
How to make QueryParser select entire word like "H.O.T"
Hi,
I'm using xapian to build my search engine, but met with a problem.
The code snippet is like:
----------------------Code begin-------------------------------------------------------------
Xapian::QueryParser qp;
qp.add_prefix("Singer", "S");
Xapian::Query query = qp.parse_query("Singer:s.h.e",
2006 Apr 11
2
setting the default operator on a QueryParser
Hi all,
Thanks to the authors for the amazing work on Ferret! I have a question
about setting up the standard operators on a QueryParser. I would like
my parser to default to AND queries rather than the default OR.
In Java I would simply do:
QueryParser parser = new QueryParser("contents", new
StandardAnalyzer());
parser.setDefaultOperator(QueryParser.Operator.AND);
But I
2006 Sep 22
1
QueryParser bug?
I cooked up a little script to show what I mean. This doesn''t look right
to me, but maybe I just completely misunderstand QueryParser.
Same output on mswin32, unix, ferret 0.9 and 0.10
Cheers, Sam
require ''rubygems''
require ''ferret''
p Ferret::VERSION # 0.10.6
index = Ferret::Index::Index.new()
index << {:title => "Programming
2009 Jan 10
2
QueryParser::parse_query() uses OR by default? How to switch to AND?
I use the QueryParser::parse_query() method but I see it uses "OR" by default between words? Is
there a way to make it use "AND" instead?
I see there are flags I can pass to the parse_query() method but none seems to allow a switch from
OR to AND.
I would like to do that without having to write my own query parser. Everything else is fine with
the QueryParser parsing, for
2005 Aug 22
2
queryparser dies badly on double search words.
hey.
I'm using the Search::Xapian interface version 0.9.2 (and xapian-core
0.9.2), and feeding the queryparser such things as "one AND NOT two"
or "test NOT NOT really" makes it go "Aborted"... I've tried adding
the exception handling from the other stubs to QueryParser.xs as
well, but I still can't catch this error from perl. Does this mean
2012 Mar 11
1
GSOC 2012: Dynamic Snippets and QueryParser Reimplementation
Hello,
My name is Sean Mikalson. I am a second year Software Engineering student
with a combined degree in Philosophy. I am interested in participating with
Xapian in GSOC this year and a couple of projects have initially caught my
eye:
- Dynamic Snippets
- QueryParser Reimplementation
I have good working knowledge in C/C++, Java and SQL (specifically
Transact-SQL). In order to determine
2006 Oct 30
1
QueryParser and prefixes
Hi all,
My app uses prefixes for user-defined labels and directory names.
Since these are
case-sensitive, I chose XLABEL and XDIR respectively. Labels and directories
may start with an upper-case, so a ":" is always inserted between the
prefix and the
term itself. These prefixes are mapped with add_boolean_prefix to
"dir" and "label".
Let's imagine I index a
2006 May 17
3
QueryParser lowercase / uppercase and stemming
Hello.
There are several problems I couldn't find a solution.
1. QueryParser does not perform stemming
I am working with PHP5 and use the xapian wrapper written by Daniel M?nard
I build a query using parseQuery. Output of the parsed query shows that
terms are not stemmed, although a stemmer is set ( see code snippet)
# create a XapianDatabase object to search in
$db = new
2006 Oct 16
2
Ferret::QueryParser::QueryParseException
During our last week of Ferret / aaf usage (also our first week of
Ferret / aaf usage), I have received 8 messages stating that our app
encountered a Ferret::QueryParser::QueryParseException. For instance:
A Ferret::QueryParser::QueryParseException occurred in foo#search:
Error occurred in src/q_parser.y:279 - yyerror
couldn''t parse query "com -- 404". Error message
2015 Mar 05
2
Dovecot Full Text Search: HTTP 500 : Unknown fieldType 'text_general' specified on field text. [SERIOUS]
Hi Muzzafer,
I get the error as specified below when i try to added it in as a field:-
I dont think text_general is a valid field?
HTTP ERROR 500
Problem accessing /solr/. Reason:
{msg=SolrCore 'collection1' is not available due to init failure:
Could not load conf for core collection1: Unknown fieldType
'text_general' specified on field text. Schema file is
2007 Sep 27
5
QueryParser.parse question
Hi there,
I am stomped as to why QueryParser''s parse method behaves differently
between query ''a'' and ''b''.
See http://pastie.caboo.se/private/4rlwrecyyow3yl6qtf4tq
Could someone please help me understand why that is the case.
p.s. I also found ''i'' produce the same behavour as ''a''
Cheers,
Andy
2007 Oct 19
1
Re: [Xapian-commits] 9476: trunk/xapian-core/ trunk/xapian-core/include/xapian/ trunk/xapian-core/queryparser/ trunk/xapian-core/tests/
olly wrote:
> SVN root: svn://svn.xapian.org/xapian
> Changes by: olly
> Revision: 9476
> Date: 2007-10-19 03:47:11 +0100 (Fri, 19 Oct 2007)
>
> Log message (14 lines):
> include/xapian/queryparser.h,queryparser/queryparser.cc,
> queryparser/queryparser.lemony,queryparser/queryparser_internal.h,
> tests/queryparsertest.cc: Since calling
2006 Dec 08
6
QueryParser Exception Handling Problem
According to the following link:
http://ferret.davebalmain.com/api/classes/Ferret/QueryParser.html
:handle_parser_errors => true is enabled by default and seems to be in
acts_as_ferret in class_methods.rb of the plugin. However, when I pass a
special character as a query (e.g., !, -, <, >, etc) it throws an error
and pukes.
-- snip --
Error occured in src/q_parser.y:279 - yyerror
2010 Jan 19
1
QueryParser: aliases and OP_AND
Hello,
I'm wondering about how the QueryParser parses a query containing an "alias" when the default operator is OP_AND
(by "alias", I mean a search field mapped to multiple term prefixes).
With the following php code :
<?php
$parser=new XapianQueryParser();
$parser->set_default_op(XapianQuery::OP_AND);
$parser->add_prefix('alias', 'AUT1:');
2015 Mar 05
3
Dovecot Full Text Search results in SolrException: undefined field text [SERIOUS]
Hello,
My dovecot constantly runs into this error.
I want to fix this one last time, I am tired of troubleshooting so
please someone give me a lasting and proper solution for this error. I
think its a problem with the dovecot-solr module.
Please tell me how do I find the root of this problem with Dovecot.
There is a problem with the body search text field. It always
fails(with no result), other
2004 Jun 15
1
QueryParser memory leak?
Hi Olly,
valgrind showed me what seems to be a memory leak:
QueryParser owns the Stopper and Stem instances it points to (since it
deletes them e.g. in set_stemming_options), but it does not delete them
at destruction.
(Btw., I don't test before deleting, but maybe "delete 0;" does not work
on all platforms?)
--
Robert Pollak
GPG Key ID: 748646AD
-------------- next part
2006 Jun 27
2
Using QueryParser vs building my own query
Hello all
I finally caved in and decided I should build my own query instead of
relying on QueryParser to do the job for me, but I''ve hit a strange
problem..
Here''s how I build my query:
#Main query
query = Ferret::Search::BooleanQuery.new
#Build query to match types
typesquery = Ferret::Search::BooleanQuery.new
@selected_types.each{|type|
typesquery.add_query(
2004 Dec 14
1
stopwords
Hi!
I would like to use the lists of stopwords provided with Xapian. Are
there some standard way to remove stopwords automatically, or should I
implement it mysel in the indexer?
Regards,
Georges Dupret