Permalink
Commits on Jun 6, 2017
  1. Merge pull request #21 from chef/ksubrama/migrate

    Kartik Null Cating-Subramanian committed Jun 6, 2017
    Update to 10355706961249b12b031d82aaeb3bb9d56c1591
  2. Update to 10355706961249b12b031d82aaeb3bb9d56c1591

    Kartik Null Cating-Subramanian committed Jun 6, 2017
    Only changes from 10355706961249b12b031d82aaeb3bb9d56c1591
    and e72407495e0ecc4158985e4605d5f84e0e712b7f were brought in as these
    were the only relevant changes.
    
    Signed-off-by: Kartik Null Cating-Subramanian <ksubramanian@chef.io>
Commits on Oct 5, 2016
  1. Merge pull request #20 from chef/ks+rad/SPOOL-353/kill_the_wabbit

    Kartik Null Cating-Subramanian committed Oct 5, 2016
    Remove unnecessary gen_bunny code to unbreak oc_reporting
  2. Remove unnecessary gen_bunny code to unbreak oc_reporting

    Kartik Null Cating-Subramanian committed Oct 4, 2016
Commits on Sep 22, 2016
  1. Merge pull request #19 from chef/rad/SPOOL-352/update-chef_index

    rmoshier committed Sep 22, 2016
    Rad/spool 352/update chef index
  2. Bring the chef_index repo up to date

    rmoshier committed Sep 16, 2016
    * Update rebar.config
    * Update tests so everything compiles using Erlang 16
Commits on Sep 21, 2016
Commits on Dec 12, 2014
  1. Merge pull request #18 from opscode/tc/deprecate

    oferrigni committed Dec 12, 2014
    Deprecation note.
Commits on Dec 11, 2014
  1. Deprecation note.

    tylercloke committed Dec 11, 2014
Commits on Jul 2, 2014
  1. Merge pull request #17 from opscode/of/cleanup_solr4_ab_code

    oferrigni committed Jul 2, 2014
    Of/cleanup solr4 ab code
Commits on Jun 4, 2014
  1. Solr4 requires headers to be set on update

    Oliver Ferrigni committed Jun 4, 2014
Commits on May 23, 2014
  1. Cleanup ab test code that is no longer in use

    Oliver Ferrigni committed May 22, 2014
Commits on May 22, 2014
  1. Ignore .rebar created by latest tag of rebar

    Oliver Ferrigni committed May 22, 2014
Commits on Feb 21, 2014
  1. Merge pull request #15 from opscode/sf/solr4

    oferrigni committed Feb 21, 2014
    Inline Flatten / Expand
Commits on Jan 3, 2014
  1. Move chef_index_expand to chef_reindex

    Oliver Ferrigni committed Jan 3, 2014
Commits on Dec 20, 2013
  1. PR Comments

    Oliver Ferrigni committed Dec 20, 2013
  2. Overall pass/fail message

    Oliver Ferrigni committed Dec 5, 2013
    Check all results to determine if any validation failed.  Improves the feedback
    cycle by not having to sift through results for individual failures.
  3. Align test script with current api

    Oliver Ferrigni committed Dec 5, 2013
    This test script is brought up to date with latest api to match up with doc
    format.
Commits on Dec 11, 2013
  1. Expose chef_solr:search/2 to allow passing custom Solr URL

    seth committed with Oliver Ferrigni Nov 19, 2013
  2. Support multiple vhosts for set and delete

    seth committed with Oliver Ferrigni Nov 18, 2013
    The previous patches allow calling code to pass a custom Solr URL to
    control where data will eventually be POSTed given a single
    queue (rabbitmq vhost) and single set of expanders.
    
    This patch introduces support for multiple rabbitmq vhosts. A list of
    vhosts can be provided in app config at 'rabbitmq_vhosts' (note the
    's'). A bunnyc gen_server is started for each vhost registered under a
    name derived from the vhost.
    
    Calling code must now know the vhost it wishes to send to. This
    provides for a different mechanism of simultaneously indexing data to
    two different solr instances. Here, data is sent by the client to two
    vhosts and there are then assumed to be two separate sets of expanders
    each talking to a different Solr instance.
  3. Allow Solr URL to be set in payload for via set/5 and delete/4

    seth committed with Oliver Ferrigni Nov 16, 2013
    Current version of expander will ignore the value if present. New
    version will post to the Solr URL provided.
  4. Add coverage for chef_index_queue:delete

    seth committed with Oliver Ferrigni Nov 16, 2013
    Also some minor cleanup to the unit tests to do multiple ?assertEqual
    calls rather than whole-sale pattern matching.
  5. Add info log before sending to solr

    seth committed with Oliver Ferrigni Nov 15, 2013
  6. Add md docs generated via `make doc`

    seth committed with Oliver Ferrigni Nov 14, 2013
  7. Add init_add_items, add_item, and send_items API

    seth committed with Oliver Ferrigni Nov 14, 2013
    The new API provides an interface to bulk item flatten/expand and POST
    to solr. The interface is designed to allow either a serial
    implementation or an async and parallel compute model for the
    flatten/expand work (with a sync join on POST to solr).
    
    The Solr URL is exposed as an argument to init_add_items/1 to make it
    easier for us to test against multiple solr instances. In the future,
    we may want to remove this argument and obtain the Solr URL from app
    config.
    
    * Cleanup command processing All POSTs to solr are now treated as
    "multi" and sent inside <update>...</update>. This reduces some
    special case code for dealing differentiating singleton updates from
    multiple item updates.
    
    * The output XML no longer includes newline '\n' after the
    delete tag.
    
    * Normalize error return for post_to_solr to be {error, _}
    
    * Standardizing tagged error returns to be {error, _} makes it easier
    to write consistent generic error handling code.
    
    * Add doc and specs, rename init_add_items => init_items
    
    * post_single and post_multi return ok instead of skip now when passed
    no-op input.
  8. Add meta fields to content to match chef-expander behavior

    seth committed with Oliver Ferrigni Nov 4, 2013
    The Ruby based chef-expander adds db, id, and type values to the
    content field. Pretty sure the system does not rely on this and that
    no user is either. But in the interest of full backwards compat for
    now, this makes the results match.
  9. Ignore generated files in test dir

    seth committed with Oliver Ferrigni Oct 15, 2013
  10. Improve floating point formatting to align better with Ruby

    seth committed with Oliver Ferrigni May 16, 2013
    Floating point formatting in JSON may be difficult to match exactly.
    This seems to get us closer to matching the behavior of the
    chef-expander code.
  11. Match behavior of Ruby implementation for embedded null values.

    seth committed with Oliver Ferrigni Oct 15, 2013
    The Ruby implementation parses the null values in JSON to nil values
    in Ruby which then end up as empty string when put into a format
    string.
    
    I'm not sure if our query transformation provides for a way to
    generate a valid query. Arguably indexing the null value using the
    string "null" might make for a better setup.
    
    Conflicts:
    	test/chef_index_expand_tests.erl
  12. XML escape quote character to match Ruby implementation

    seth committed with Oliver Ferrigni Oct 15, 2013
    The Ruby implementation escapes `"` as `&quot;` so we need to do the
    same. Note that this makes for some strange semantics if you have
    embedded quotes and want to later search for them, you will need to
    use the entity code in the search query.
  13. Capture key path as part of flatten/expand

    seth committed with Oliver Ferrigni May 15, 2013
    Match the Ruby implementation to capture all steps of a key path as
    KEY_HEAD__=__KEY_LAST.
  14. Add chef_index_expand to flatten/expand and POST to Solr

    seth committed with Oliver Ferrigni Apr 28, 2013
    The module allows us to process Chef objects in the
    same way as the chef-expander code does, but now we can POST to Solr
    directly.
    
    The module also enables a bulk POST mode (not yet tested against Solr)
    that should allow us to index or delete multiple objects using a
    single HTTP request. For migration or re-indexing purposes this should
    be a big improvement as we could easily reduce the number of HTTP
    calls by 10x.
  15. Merge pull request #14 from opscode/of/lager

    oferrigni committed Dec 11, 2013
    Replace fast_log with lager in oc_erchef