Lines Matching defs:query
418 warnx("Unable to query schema version: %s",
424 warnx("Unable to query schema version: %s",
463 * For each phrase of the query, it computes the tf and idf and adds them over.
540 * generates sql query for matching the user entered query
549 char *query = NULL;
565 /* We want to build a query of the form: "select x,y,z from mandb where
566 * mandb match :query [AND (section IN ('1', '2')]
597 query = sqlite3_mprintf("SELECT section, name, name_desc, machine"
608 * If it's a single word query, we want to search in the
615 query = sqlite3_mprintf(
636 query = sqlite3_mprintf("SELECT section, name, name_desc, machine,"
654 return query;
665 * Execute the full text search query and return the number of results
669 execute_search_query(sqlite3 *db, char *query, query_args *args)
693 rc = sqlite3_prepare_v2(db, query, -1, &stmt, NULL);
748 char *query;
749 query = generate_search_query(args, snippet_args);
750 if (query == NULL) {
755 int rc = execute_search_query(db, query, args);
756 sqlite3_free(query);
856 * Utility function to output query result in HTML format.
1162 warnx("Unknown query format %d", (int)fmt);