search for: query_term

Displaying 3 results from an estimated 3 matches for "query_term".

Did you mean: query_terms
2006 Feb 01
1
Rails pagination problem
...9;program_name'' (which is valid column/attribute of program) The error message is: DBI::DatabaseError: S0022 (207) [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid column name ''program_name''.: SELECT * FROM (SELECT TOP 3 * FROM (......rest of query deleted...... query_term = ''%tiger%'' @program_pages, @programs = paginate :programs, :conditions => ["program_name like ?", query_term], :per_page => 5, :include => [:status], :order => ''program_name'' If I remove ":include => [:status]" from the pagin...
2018 Aug 09
2
Boosted fields search in Python
...ngle terms, not fields and not multiple-word queries I have implemented a workaround that manually attaches prefixes to terms and combines everything with an OR, like this: subqueries = [] subqueries.extend([xapian.Query(xapian.Query.OP_SCALE_WEIGHT, xapian.Query('S'+term), 4) for term in query_terms]) subqueries.extend([xapian.Query(xapian.Query.OP_SCALE_WEIGHT, xapian.Query('XD'+term), 2) for term in query_terms]) query = xapian.Query(xapian.Query.OP_OR, subqueries) However: 1. It seems overly complicated (and I'm not even sure is correct?) 2. I don't know how to access the...
2010 Jul 26
2
related documents
Hi All, I would like to take a doc in the xapian DB and find all related documents by relevance e.g. so when you view one document it says "Related entries X Y Z". I'm aware of the "Morelikethis" Lucene plugin that is supposed to do something like this, by generating a query from a document based on term frequency. Has anyone developed a tool to generate a query from a