Displaying 3 results from an estimated 3 matches for "query_terms".
2006 Feb 01
1
Rails pagination problem
I am having this problem with pagination query in my controller class.
I am using SQL server and following code to create pagination fails,
complains about column name ''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
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 t...
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