# Language ru-RU translations for PACKAGE package.
# Automatically generated, 2008.
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2008-04-04 01:24+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#. Tag: title
#: Hsearch.xml:5
#, no-c-format
msgid "Hibernate Search"
msgstr ""

#. Tag: title
#: Hsearch.xml:8
#, no-c-format
msgid "Introduction"
msgstr ""

#. Tag: para
#: Hsearch.xml:10
#, no-c-format
msgid ""
"Full text search engines like Apache Lucene™ are a very powerful technology "
"that bring full text and efficient queries to applications. Hibernate "
"Search, which uses Apache Lucene under the covers, indexes your domain model "
"with the addition of a few annotations, takes care of the database / index "
"synchronization and returns regular managed objects that are matched by full "
"text queries. Keep in mind, thought, that there are mismatches that arise "
"when dealing with an object domain model over a text index (keeping the "
"index up to date, mismatch between the index structure and the domain model, "
"and querying mismatch). But the benefits of speed and efficiency far "
"outweigh these limitations."
msgstr ""

#. Tag: para
#: Hsearch.xml:21
#, no-c-format
msgid ""
"Hibernate Search has been designed to integrates nicely and as naturally as "
"possible with JPA and Hibernate. As a natural extension, JBoss Seam provides "
"an Hibernate Search integration."
msgstr ""

#. Tag: para
#: Hsearch.xml:25
#, no-c-format
msgid ""
"Please refer to the <ulink url=\"http://www.hibernate.org/hib_docs/search/"
"reference/en/html_single/\">Hibernate Search documentation</ulink> for "
"information specific to the Hibernate Search project."
msgstr ""

#. Tag: title
#: Hsearch.xml:33
#, no-c-format
msgid "Configuration"
msgstr ""

#. Tag: para
#: Hsearch.xml:35
#, no-c-format
msgid ""
"Hibernate Search is configured either in the <filename>META-INF/persistence."
"xml</filename> or <filename>hibernate.cfg.xml</filename> file."
msgstr ""

#. Tag: para
#: Hsearch.xml:39
#, no-c-format
msgid ""
"Hibernate Search configuration has sensible defaults for most configuration "
"parameters. Here is a minimal persistence unit configuration to get started."
msgstr ""

#. Tag: programlisting
#: Hsearch.xml:43
#, no-c-format
msgid ""
"<![CDATA[<persistence-unit name=\"sample\">\n"
"   <jta-data-source>java:/DefaultDS</jta-data-source>\n"
"   <properties>\n"
"      [...]\n"
"      <!-- use a file system based index -->\n"
"      <property name=\"hibernate.search.default.directory_provider\" \n"
"         value=\"org.hibernate.search.store.FSDirectoryProvider\"/>\n"
"      <!-- directory where the indexes will be stored -->\n"
"      <property name=\"hibernate.search.default.indexBase\" \n"
"         value=\"/Users/prod/apps/dvdstore/dvdindexes\"/>\n"
"   </properties>\n"
"</persistence-unit>]]>"
msgstr ""

#. Tag: para
#: Hsearch.xml:45
#, no-c-format
msgid ""
"If you plan to target Hibernate Annotations or EntityManager 3.2.x (embedded "
"into JBoss AS 4.2.GA), you also need to configure the appropriate event "
"listeners."
msgstr ""

#. Tag: programlisting
#: Hsearch.xml:49
#, no-c-format
msgid ""
"<![CDATA[<persistence-unit name=\"sample\">\n"
"   <jta-data-source>java:/DefaultDS</jta-data-source>\n"
"   <properties>\n"
"      [...]\n"
"      <!-- use a file system based index -->\n"
"      <property name=\"hibernate.search.default.directory_provider\" \n"
"                value=\"org.hibernate.search.store.FSDirectoryProvider\"/>\n"
"      <!-- directory where the indexes will be stored -->\n"
"      <property name=\"hibernate.search.default.indexBase\" \n"
"                value=\"/Users/prod/apps/dvdstore/dvdindexes\"/>\n"
"\n"
"      <property name=\"hibernate.ejb.event.post-insert\" \n"
"                value=\"org.hibernate.search.event.FullTextIndexEventListener"
"\"/>\n"
"      <property name=\"hibernate.ejb.event.post-update\" \n"
"                value=\"org.hibernate.search.event.FullTextIndexEventListener"
"\"/>\n"
"      <property name=\"hibernate.ejb.event.post-delete\" \n"
"                value=\"org.hibernate.search.event.FullTextIndexEventListener"
"\"/>\n"
"\n"
"   </properties>\n"
"</persistence-unit>]]>"
msgstr ""

#. Tag: para
#: Hsearch.xml:52
#, no-c-format
msgid ""
"This step is no longer necessary if Hibernate Annotation or EntityManager "
"3.3.x are used."
msgstr ""

#. Tag: para
#: Hsearch.xml:56
#, no-c-format
msgid ""
"In addition to the configuration file, the following jars have to be "
"deployed:"
msgstr ""

#. Tag: para
#: Hsearch.xml:61
#, no-c-format
msgid "hibernate-search.jar"
msgstr ""

#. Tag: para
#: Hsearch.xml:65
#, no-c-format
msgid "hibernate-commons-annotations.jar"
msgstr ""

#. Tag: para
#: Hsearch.xml:69
#, no-c-format
msgid "lucene-core.jar"
msgstr ""

#. Tag: para
#: Hsearch.xml:74
#, no-c-format
msgid ""
"If you deploy those in a EAR, don't forget to update <filename>application."
"xml</filename>"
msgstr ""

#. Tag: title
#: Hsearch.xml:80
#, no-c-format
msgid "Usage"
msgstr ""

#. Tag: para
#: Hsearch.xml:82
#, no-c-format
msgid ""
"Hibernate Search uses annotations to map entities to a Lucene index, check "
"the <ulink url=\"http://www.hibernate.org/hib_docs/search/reference/en/"
"html_single/\">reference documentation</ulink> for more informations."
msgstr ""

#. Tag: para
#: Hsearch.xml:87
#, no-c-format
msgid ""
"Hibernate Search is fully integrated with the API and semantic of JPA / "
"Hibernate. Switching from a HQL or Criteria based query requires just a few "
"lines of code. The main API the application interacts with is the "
"<classname>FullTextSession</classname> API (subclass of Hibernate's "
"<classname>Session</classname>)."
msgstr ""

#. Tag: para
#: Hsearch.xml:93
#, no-c-format
msgid ""
"When Hibernate Search is present, JBoss Seam injects a "
"<classname>FullTextSession</classname>."
msgstr ""

#. Tag: programlisting
#: Hsearch.xml:96
#, no-c-format
msgid ""
"<![CDATA[@Stateful\n"
"@Name(\"search\")\n"
"public class FullTextSearchAction implements FullTextSearch, Serializable {\n"
"\n"
"   @In FullTextSession session;\n"
"\n"
"   public void search(String searchString) {\n"
"      org.apache.lucene.query.Query luceneQuery = getLuceneQuery();\n"
"      org.hibernate.Query query session.createFullTextQuery(luceneQuery, "
"Product.class);\n"
"      searchResults = query\n"
"            .setMaxResults(pageSize + 1)\n"
"            .setFirstResult(pageSize * currentPage)\n"
"            .list();\n"
"   }\n"
"   [...]\n"
"}]]>"
msgstr ""

#. Tag: para
#: Hsearch.xml:99
#, no-c-format
msgid ""
"<classname>FullTextSession</classname> extends <classname>org.hibernate."
"Session</classname> so that it can be used as a regular Hibernate Session"
msgstr ""

#. Tag: para
#: Hsearch.xml:104
#, no-c-format
msgid ""
"If the Java Persistence API is used, a smoother integration is proposed."
msgstr ""

#. Tag: programlisting
#: Hsearch.xml:107
#, no-c-format
msgid ""
"<![CDATA[@Stateful\n"
"@Name(\"search\")\n"
"public class FullTextSearchAction implements FullTextSearch, Serializable {\n"
"   \n"
"   @In FullTextEntityManager em;\n"
"\n"
"   public void search(String searchString) {\n"
"      org.apache.lucene.query.Query luceneQuery = getLuceneQuery();\n"
"      javax.persistence.Query query = em.createFullTextQuery(luceneQuery, "
"Product.class);\n"
"      searchResults = query\n"
"            .setMaxResults(pageSize + 1)\n"
"            .setFirstResult(pageSize * currentPage)\n"
"            .getResultList();\n"
"   }\n"
"   [...]\n"
"}]]>"
msgstr ""

#. Tag: para
#: Hsearch.xml:109
#, no-c-format
msgid ""
"When Hibernate Search is present, a <classname>FulltextEntityManager</"
"classname> is injected. <classname>FullTextEntityManager</classname> extends "
"<classname>EntityManager</classname> with search specific methods, the same "
"way <classname>FullTextSession</classname> extends <classname>Session</"
"classname>."
msgstr ""

#. Tag: para
#: Hsearch.xml:116
#, no-c-format
msgid ""
"When an EJB 3.0 Session or Message Driven Bean injection is used (i.e. via "
"the @PersistenceContext annotation), it is not possible to replace the "
"<classname>EntityManager</classname> interface by the "
"<classname>FullTextEntityManager</classname> interface in the declaration "
"statement. However, the implementation injected will be a "
"<classname>FullTextEntityManager</classname> implementation: downcasting is "
"then possible."
msgstr ""

#. Tag: programlisting
#: Hsearch.xml:124
#, no-c-format
msgid ""
"<![CDATA[@Stateful\n"
"@Name(\"search\")\n"
"public class FullTextSearchAction implements FullTextSearch, Serializable {\n"
"  \n"
"   @PersistenceContext EntityManager em;\n"
"\n"
"   public void search(String searchString) {\n"
"      org.apache.lucene.query.Query luceneQuery = getLuceneQuery();\n"
"      FullTextEntityManager ftEm = (FullTextEntityManager) em;\n"
"      javax.persistence.Query query = ftEm.createFullTextQuery(luceneQuery, "
"Product.class);\n"
"      searchResults = query\n"
"            .setMaxResults(pageSize + 1)\n"
"            .setFirstResult(pageSize * currentPage)\n"
"            .getResultList();\n"
"   }\n"
"   [...]\n"
"}]]>"
msgstr ""

#. Tag: para
#: Hsearch.xml:129
#, no-c-format
msgid ""
"For people accustomed to Hibernate Search out of Seam, note that using "
"<methodname>Search.createFullTextSession</methodname> is not necessary."
msgstr ""

#. Tag: para
#: Hsearch.xml:134
#, no-c-format
msgid ""
"Check the DVDStore or the blog examples of the JBoss Seam distribution for a "
"concrete use of Hibernate Search."
msgstr ""
