Home | History | Annotate | Download | only in makemandb

Lines Matching defs:query

158 	char *query = NULL;	// the user query
208 query = remove_stopwords(lower(str));
211 * If the query consisted only of stopwords and we removed all of
212 * them, use the original query.
214 if (query == NULL)
215 query = str;
238 args.search_str = query;
252 "collapse;\" border=\"1\">\n", query);
260 free(query);
325 * Scans the query and removes any stop words from it.
326 * Returns the modified query or NULL, if it contained only stop words.
330 remove_stopwords(const char *query)
336 output = buf = emalloc(strlen(query) + 1);
338 for (; query[0] != '\0'; query = next) {
339 sep = strchr(query, ' ');
341 len = strlen(query);
342 next = query + len;
344 len = sep - query;
349 idx = stopwords_hash(query, len);
350 if (memcmp(stopwords[idx], query, len) == 0 &&
353 memcpy(buf, query, len);
374 "[-S machine] [-s section] query\n",