The Lucandra.NET configuration is done within your App/Web.config file. Here is an example config:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
    <section name="lucandra.net" type="Lucandra.Configuration.LucandraConfigurationSection, Lucandra.Net"/>
  </configSections>

  <!-- This is the Lucandra.NET configuration section. -->
  <lucandra.net
    keyspace="Lucandra"
    defaultIndexName="Test Index"
    defaultAutoCommit="true">

    <!-- Settings for the documents column family. -->
    <documentsColumnFamily
      name="D"
      storedFieldSuperColumnName="s"
      indexedTermSuperColumnName="i" />

    <!-- Settings for the term-info column family. -->
    <termInfoColumnFamily
      name="T"
      documentPointerSuperColumnName="d" />

    <!-- Settings regarding caching. -->
    <caching>

      <!-- Term read-ahead defines how many terms the TermInfoReader should read at a time and cache.
      Higher values are better for wildcard and range queries and lower values are better for term queries.-->
      <termReadAhead value="5" />

    </caching>

    <!-- Settings regarding the Cassandra connection pooling. -->
    <connectionPool
      minConnections="10"
      maxConnections="1000"
      magicNumber="7"
      maxClientPollAttempts="0">
      
      <!-- Configure the Cassandra endpoints that you would like Lucandra to use.  Lucandra will use these
      endpoints to create connections in the pool in a round-robin fashion. -->
      <cassandraEndpoints>
        <add
          host="localhost"
          port="9160"
          timeout="9000" />
      </cassandraEndpoints>

    </connectionPool>

  </lucandra.net>

</configuration>

Last edited Nov 24, 2010 at 6:47 PM by cylwit, version 2

Comments

No comments yet.