<commit_before>.. -*- rst -*-

:orphan:

.. highlightlang:: none

News
====

.. _release-5-0-5:

Release 5.0.5 - 2015-06-29
--------------------------

Improvements
^^^^^^^^^^^^

* Show correct error information such as NoSuchFileOrDirectory when opening a database.
* Don't set the default logger path for library use.

  * It's backward incompatible change. But it will not effect to many users.
  * Server use (groonga command, Mroonga, PGroonga and so on) users can get
    log by default. In server use, developers set up log in their software.
  * Most library use (Rroonga, groonga-gobject and so on) users couldn't get
    log by default with earlier versions. The default log path is system
    path such as /var/log/groonga/groonga.log. It's not writable for normal
    users.

* [windows] Show error information when memory isn't enough on failing ``CreateFileMapping()``.
* [:doc:`/reference/commands/tokenize`] Updated example to show new "force_prefix" value.
  This value is added since 5.0.4.
* [windows] Show error information when disk has any problem (disk full and so on) on failing ``FlushViewOfFile()``.
* [API] Added :c:func:`grn_obj_flush()`.
* [API] Added :c:func:`grn_obj_flush_recursive()`.
* [:doc:`/reference/commands/io_flush`] Added. It flushes memory mapped data to disk.
  Usually memory data automatically flush by an OS, but you can explicitly flush with
  this command.
* [mruby] Binded ``grn_obj_remove()`` to Object#remove.
* [mruby] Binded ``grn_table_delete()`` and ``grn_table_delete_by_id()`` to Table#delete.
* [:doc:`/reference/commands/logical_table_remove`] Added.
* [:doc:`/reference/commands/logical_select`] Added. ``--filter`` is only supported for now.
* [experimental] Added grn_egn. It's a compatible faster query engine. It's enabled
  if ``GRN_WITH_EGN`` macro is defined at compiling. If enabled, It's used when
  select is invoked with ``--filter`` starting with ``?``.
* [cmake] Supported embedded MeCab tokenizer.
* [:doc:`/reference/commands/logical_count`] Supported month and day mixed shards.
  In the same month, month shard must have earlier records rather than day
  shards in the same month.

Fixes
^^^^^

* Fixed wrong macro to include netinet/in.h.
  [GitHub#348] [Reported by OBATA Akio]
* [rpm][:doc:`/reference/executables/groonga-httpd`] Fixed failing restart.
  [GitHub#351] [Patch by jacob16bit]

Thanks
^^^^^^

* OBATA Akio
* jacob16bit

.. _release-5-0-4:

Release 5.0.4 - 2015-05-29
--------------------------

Improvements
^^^^^^^^^^^^

* [mruby] Changed to use ``inspect`` to show meaningful error message for error value.
* [mruby] Supported ``Groonga::Bulk#inspect`` to inspect bulk content.
* [mruby] Supported ``Bulk#value`` to extract the value of record from bulk content.
* [mruby] Supported estimating size for ``reference_column == record_id`` in
  :doc:`/reference/commands/logical_range_filter`. In above case, it can be searched
  more effectively.<commit_msg>doc news: add an example for month and day mixed for logical_count<commit_after>.. -*- rst -*-

:orphan:

.. highlightlang:: none

News
====

.. _release-5-0-5:

Release 5.0.5 - 2015-06-29
--------------------------

Improvements
^^^^^^^^^^^^

* Show correct error information such as NoSuchFileOrDirectory when opening a database.
* Don't set the default logger path for library use.

  * It's backward incompatible change. But it will not effect to many users.
  * Server use (groonga command, Mroonga, PGroonga and so on) users can get
    log by default. In server use, developers set up log in their software.
  * Most library use (Rroonga, groonga-gobject and so on) users couldn't get
    log by default with earlier versions. The default log path is system
    path such as /var/log/groonga/groonga.log. It's not writable for normal
    users.

* [windows] Show error information when memory isn't enough on failing ``CreateFileMapping()``.
* [:doc:`/reference/commands/tokenize`] Updated example to show new "force_prefix" value.
  This value is added since 5.0.4.
* [windows] Show error information when disk has any problem (disk full and so on) on failing ``FlushViewOfFile()``.
* [API] Added :c:func:`grn_obj_flush()`.
* [API] Added :c:func:`grn_obj_flush_recursive()`.
* [:doc:`/reference/commands/io_flush`] Added. It flushes memory mapped data to disk.
  Usually memory data automatically flush by an OS, but you can explicitly flush with
  this command.
* [mruby] Binded ``grn_obj_remove()`` to Object#remove.
* [mruby] Binded ``grn_table_delete()`` and ``grn_table_delete_by_id()`` to Table#delete.
* [:doc:`/reference/commands/logical_table_remove`] Added.
* [:doc:`/reference/commands/logical_select`] Added. ``--filter`` is only supported for now.
* [experimental] Added grn_egn. It's a compatible faster query engine. It's enabled
  if ``GRN_WITH_EGN`` macro is defined at compiling. If enabled, It's used when
  select is invoked with ``--filter`` starting with ``?``.
* [cmake] Supported embedded MeCab tokenizer.
* [:doc:`/reference/commands/logical_count`] Supported month and day mixed shards.
  In the same month, month shard must have earlier records rather than day
  shards in the same month. For example::

    XXX_201506   <- includes only 2015-06-01 and 2015-06-02 records
    XXX_20150603 <- includes only 2015-06-03 records
    XXX_20150604 <- includes only 2015-06-04 records

Fixes
^^^^^

* Fixed wrong macro to include netinet/in.h.
  [GitHub#348] [Reported by <NAME>]
* [rpm][:doc:`/reference/executables/groonga-httpd`] Fixed failing restart.
  [GitHub#351] [Patch by jacob16bit]

Thanks
^^^^^^

* <NAME>
* jacob16bit

.. _release-5-0-4:

Release 5.0.4 - 2015-05-29
--------------------------

Improvements
^^^^^^^^^^^^

* [mruby] Changed to use ``inspect`` to show meaningful error message for error value.
* [mruby] Supported ``Groonga::Bulk#inspect`` to inspect bulk content.
* [mruby] Supported ``Bulk#value`` to extract the value of record from bulk content.
* [mruby] Supported estimating size for ``reference_column == record_id`` in
  :doc:`/reference/commands/logical_range_filter`. In above case, it can be searched
  more effectively.
{'fraction_non_alphanumeric': 0.13831867057673508, 'fraction_numerical': 0.02215705441511893, 'mean_word_length': 3.9588045234248788, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4780836', 'n_tokens_mistral': 2065, 'n_tokens_neox': 1913, 'n_words': 697}