search for: stem_none

Displaying 6 results from an estimated 6 matches for "stem_none".

Did you mean: pte_none
2013 Sep 02
2
having trouble with prefixes
..."T"); queryparser.add_prefix("md5sum", "Q"); queryparser.add_prefix("path", "P"); queryparser.add_prefix("extension", "E"); //maybe set stemming strategy here (in query parser)? queryparser.set_stemming_strategy(QueryParser::STEM_NONE); Query query(queryparser.parse_query(full_string)); cout<<"Query is '"<<full_string<<"'"<<endl; Enquire enquire(db); enquire.set_query(query); MSet match_set(enquire.get_mset(0, 10)); for_each(match_set.begin(), match_set.end(), [...
2011 May 27
1
Does OP_NEAR works with stemming?
Hi All, I used the OP_NEAR operator for queryparser, and when I searched for "apple store" from my own collection, the query is parsed as "Zappl:(pos=1) NEAR 11 Zstore:(pos=2)" but retrieved nothing. However, if I type in "Apple Store", the query is parsed as Xapian::Query((apple:(pos=1) NEAR 11 store:(pos=2))) and some results are showed. I'm not sure whether
2011 Sep 30
1
Slow phrase performance
...esn't seem to help on common terms. I am not limiting the number of matches -- I want all of them. But even on small sets like "kansas state" with just 334 results, it's taking a long time. The following are set: $qp->set_default_op(OP_AND); $qp->set_stemming_strategy(STEM_NONE); Flags enabled: BOOLEAN,BOOLEAN_ANY_CASE,WILDCARD,PHRASE ------------------------------ I have been unable to find reports of other people experiencing the same problem with poor phrase performance, so I am hoping it's simply something that I'm doing wrong or ineffectively. Any help wou...
2007 May 30
1
QueryParser prefixing terms when stemming?
...nglish')); $qp->set_default_op(OP_AND); $qp->set_stemming_strategy(STEM_SOME); warn $qp->parse_query($search_term); In version 1.0.0.0, the same code results in "Xapian::Query(Zpet: (pos=1))". The result is no matches, even though the term pet exists. If I use STEM_NONE, the output is the same as the output from 0.9.9.1 and there are matches. It seems like the Z is a prefix, but since I'm new to Xapian, I'm not sure. Could someone guide me? Cheers, Tracy
2008 Sep 16
0
[PATCH] Add set_max_wildcard_expansion method to the queryparser.
...; + void add_prefix(const string &field, const string &prefix, bool filter); std::string parse_term(Utf8Iterator &it, const Utf8Iterator &end, @@ -81,7 +83,7 @@ class QueryParser::Internal : public Xapian::Internal::RefCntBase { public: Internal() : stem_action(STEM_NONE), stopper(NULL), - default_op(Query::OP_OR), errmsg(NULL) { } + default_op(Query::OP_OR), errmsg(NULL) { max_wildcard_expansion=0; } Query parse_query(const string & query_string, unsigned int flags, const string & default_prefix); }; -- 1.5.6.3 --=-=-=--
2012 Jan 05
1
Enhance synonyms feature of the query parser (patch included)
...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()) { term += *piter; if (prefix_needs_colon(*piter, name[0])) term += ':'; } + #endif...