summaryrefslogtreecommitdiff
path: root/lib/chef/search
Commit message (Collapse)AuthorAgeFilesLines
* Convert all uses of Chef::REST to Chef::ServerAPItm/no_more_restThom May2016-01-111-4/+18
| | | | | | | In the process, stop auto-expanding JSON in the HTTP client, and let individual classes control that themselves. Fixes #2737, Fixes #3518
* Fix search result paginationssd/search-pagination-fixSteven Danna2015-10-091-2/+16
| | | | | | | | | | | | | | | | | | | The start and rows parameter that are passed as part of the search request are passed directly to Solr on the backend. Results from Solr may contain deleted nodes no longer in the erchef database. Erchef will filter such nodes from the results. Thus, a user may receive fewer rows than they asked for. Incrementing 'start' only by the number of rows received will then result in the next Solr response overlapping the first, which can lead to duplicate results. In the case of a Solr results page that was completely filtered, it would lead to an infinite loop. This commit changes the code to always increment by the requested page size (args[:rows]) when it is non-nil. Incrementing by the length of the response set is still wrong in the case when the args[:rows] is nil, but the server doesn't give us anything else to increment by. Fixes #4027
* Ensure that a search query makes progressTom Hughes2015-03-251-1/+1
| | | | | | | | If a search doesn't return a full result then increment the start pointer by the number of rows returned, rather than assuming that it was equal to the row limit, and defaulting to zero. This should fix #3099
* Build configurable search string.mcquin/bugfix/search-filteringClaire McQuin2014-12-191-1/+9
|
* Remaining fixes.Claire McQuin2014-12-191-3/+3
| | | | | | * Exclude rows from query if rows are nil. * Update defaults in knife/search to match query defaults. * Update start when polling more rows.
* Fix spelling.Claire McQuin2014-12-191-1/+1
|
* Make config a reader.Claire McQuin2014-12-191-2/+2
|
* Use 2.0 syntax (required keyword arguments are 2.1+).Claire McQuin2014-12-191-2/+2
|
* Fix whitespace.Claire McQuin2014-12-191-5/+4
|
* Allow search to receive either an array or hash of arguments.Claire McQuin2014-12-191-44/+37
|
* Add optional config parameter.Claire McQuin2014-12-181-3/+9
|
* Return all matches by default.Claire McQuin2014-12-181-2/+1
|
* Make search with filtering match partial_search.Claire McQuin2014-12-181-86/+60
| | | | * Updated search to use argument parameters.
* Add InvalidSearchQuery exception for malformed searches.Claire McQuin2014-09-041-4/+17
|
* Fix typos, add partial_search spec.Claire McQuin2014-09-041-13/+7
|
* Comment :keys => :filter_result in partial_searchClaire McQuin2014-09-041-3/+5
|
* DEPRECATIONScott Hain2014-09-041-0/+1
|
* updated partial againScott Hain2014-09-041-2/+20
|
* Updated based on mcq and others feedbackScott Hain2014-09-041-38/+53
|
* added a default for ruby 1.8 compatibilityScott Hain2014-09-041-1/+2
|
* Last round of life improvementScott Hain2014-09-041-10/+9
|
* Refactored thanks to some great inputScott Hain2014-09-041-32/+17
|
* Fixed the stupid typo that broke the last buildScott Hain2014-09-041-2/+2
|
* fixed up some little naming nuancesScott Hain2014-09-041-2/+4
|
* Updated based on awesome feedbackScott Hain2014-09-041-48/+65
|
* Finished up search with filteringScott Hain2014-09-041-6/+67
|
* [CHEF-4176] remove unneeded aliases for chef_server_urldanielsdeleo2013-05-101-2/+2
|
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-301-0/+65
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!