Revision: 488
Author: arthur.purnama
Date: Fri Jul 27 05:44:43 2012
Log: Making Puppet configurable
http://code.google.com/p/kateglo/source/detail?r=488
Added:
/branches/kateglox/vagrant/puppet/modules/kateglo/templates
/branches/kateglox/vagrant/puppet/modules/kateglo/templates/data-config.xml.erb
/branches/kateglox/vagrant/puppet/modules/kateglo/templates/solrconfig.xml.erb
Deleted:
/branches/kateglox/vagrant/puppet/modules/kateglo/files/data-config.xml
/branches/kateglox/vagrant/puppet/modules/kateglo/files/solrconfig.xml
Modified:
/branches/kateglox/.idea/workspace.xml
/branches/kateglox/vagrant/puppet/manifests/main.pp
/branches/kateglox/vagrant/puppet/modules/bootstrap/manifests/init.pp
/branches/kateglox/vagrant/puppet/modules/diverse/manifests/init.pp
/branches/kateglox/vagrant/puppet/modules/kateglo/manifests/init.pp
/branches/kateglox/vagrant/puppet/modules/mysql/manifests/init.pp
/branches/kateglox/vagrant/puppet/modules/solr/manifests/init.pp
/branches/kateglox/vagrant/puppet/modules/solr/templates/default.jetty.erb
=======================================
--- /dev/null
+++
/branches/kateglox/vagrant/puppet/modules/kateglo/templates/data-config.xml.erb
Fri Jul 27 05:44:43 2012
@@ -0,0 +1,160 @@
+<dataConfig>
+ <dataSource type="JdbcDataSource" driver="com.mysql.jdbc.Driver"
url="jdbc:mysql://
127.0.0.1/kateglox" user="<%= solrDBUser %>"
+ password="<%= solrDBPassword %>"/>
+ <document name="entries">
+ <entity name="entry" query="select * from entry">
+
+ <field column="entry_id" name="id"/>
+ <field column="entry_name" name="entri"/>
+
+ <entity name="meaning" query="select * from meaning where
meaning_entry_id='${entry.entry_id}'">
+
+ <entity name="antonym" query="select * from antonym where
antonym_meaning_id='${meaning.meaning_id}'">
+ <entity name="antonym_meaning"
+ query="select * from meaning where
meaning_id='${antonym.antonym_antonym_id}'">
+ <entity name="antonym_meaning_entry"
+ query="select * from entry where
entry_id='${antonym_meaning.meaning_entry_id}'">
+ <field column="entry_name" name="antonim"/>
+ </entity>
+ </entity>
+ </entity>
+
+ <entity name="definition"
+ query="select * from definition where
definition_meaning_id='${meaning.meaning_id}'">
+ <field column="definition_text" name="definisi"/>
+
+ <entity name="definition_class"
+ query="select * from rel_definition_class
where rel_definition_id='${definition.definition_id}'">
+ <entity name="class"
+ query="select * from class where
class_id='${definition_class.rel_class_id}'">
+ <field column="class_name" name="kelas"/>
+
+ <entity name="rel_class_category"
+ query="select * from
rel_class_category where rel_class_id='${class.class_id}'">
+ <entity name="class_category"
+ query="select * from
class_category where
class_category_id='${rel_class_category.rel_class_category_id}'">
+ <field column="class_category_name"
name="kategoriKelas"/>
+ </entity>
+ </entity>
+ </entity>
+ </entity>
+
+ <entity name="definition_discipline"
+ query="select * from rel_definition_discipline
where rel_definition_id='${definition.definition_id}'">
+ <entity name="definition" query="select * from
discipline where
discipline_id='${definition_discipline.rel_discipline_id}'">
+ <field column="discipline_name"
name="disiplin" />
+ </entity>
+ </entity>
+
+ <entity name="sample"
+ query="select * from sample where
sample_definition_id='${definition.definition_id}'">
+ <field column="sample_text" name="contoh"/>
+ </entity>
+
+ </entity>
+
+ <entity name="misspelled"
+ query="select * from misspelled where
misspelled_meaning_id='${meaning.meaning_id}'">
+ <entity name="misspelled_meaning"
+ query="select * from meaning where
meaning_id='${misspelled.misspelled_misspelled_id}'">
+ <entity name="misspelled_meaning_entry"
+ query="select * from entry where
entry_id='${misspelled_meaning.meaning_entry_id}'">
+ <field column="entry_name" name="salahEja"/>
+ </entity>
+ </entity>
+ </entity>
+
+ <entity name="relation"
+ query="select * from relation where
relation_meaning_id='${meaning.meaning_id}'">
+ <entity name="relation_meaning"
+ query="select * from meaning where
meaning_id='${relation.relation_relation_id}'">
+ <entity name="relation_meaning_entry"
+ query="select * from entry where
entry_id='${relation_meaning.meaning_entry_id}'">
+ <field column="entry_name" name="relasi"/>
+ </entity>
+ </entity>
+ </entity>
+
+ <entity name="synonym" query="select * from synonym where
synonym_meaning_id='${meaning.meaning_id}'">
+ <entity name="synonym_meaning"
+ query="select * from meaning where
meaning_id='${synonym.synonym_synonym_id}'">
+ <entity name="synonym_meaning_entry"
+ query="select * from entry where
entry_id='${synonym_meaning.meaning_entry_id}'">
+ <field column="entry_name" name="sinonim"/>
+ </entity>
+ </entity>
+ </entity>
+
+ <entity name="spelled"
+ query="select * from misspelled where
misspelled_misspelled_id='${meaning.meaning_id}'">
+ <entity name="spelled_meaning"
+ query="select * from meaning where
meaning_id='${spelled.misspelled_meaning_id}'">
+ <entity name="spelled_meaning_entry"
+ query="select * from entry where
entry_id='${spelled_meaning.meaning_entry_id}'">
+ <field column="entry_name" name="ejaan"/>
+ </entity>
+ </entity>
+ </entity>
+
+ <entity name="syllabel"
+ query="select * from syllabel where
syllabel_meaning_id='${meaning.meaning_id}'">
+ <field column="syllabel_text" name="silabel"/>
+ </entity>
+
+ <entity name="meaning_type"
+ query="select * from rel_meaning_type where
rel_meaning_id='${meaning.meaning_id}'">
+ <entity name="type" query="select * from type where
type_id='${meaning_type.rel_type_id}'">
+ <field column="type_name" name="bentuk"/>
+
+ <entity name="rel_type_category"
+ query="select * from rel_type_category
where rel_type_id='${type.type_id}'">
+ <entity name="type_category"
+ query="select * from type_category
where type_category_id='${rel_type_category.rel_type_category_id}'">
+ <field column="type_category_name"
name="kategoriBentuk"/>
+ </entity>
+ </entity>
+ </entity>
+ </entity>
+
+ </entity>
+
+ <entity name="source" query="select * from source where
source_entry_id='${entry.entry_id}'">
+ <field column="source_text_clean" name="sumber"/>
+
+ <entity name="source_category"
+ query="select * from source_category where
source_category_id = '${source.source_category_id}'">
+ <field column="source_category_name"
name="kategoriSumber"/>
+ </entity>
+ </entity>
+
+ <entity name="equivalents" query="select * from equivalent
where equivalent_entry_id='${entry.entry_id}'">
+ <entity name="foreign"
+ query="select * from `foreign` where foreign_id
= '${equivalents.equivalent_foreign_id}'">
+ <field column="foreign_name" name="asing"/>
+
+ <entity name="language"
+ query="select * from language where
language_id='${foreign.foreign_language_id}'">
+ <field column="language_name" name="bahasa"/>
+
+ <entity name="rel_equivalent_discipline"
+ query="select * from
rel_equivalent_discipline where
rel_equivalent_id='${equivalents.equivalent_id}'">
+ <entity name="equivalent_discipline"
+ query="select * from discipline where
discipline_id='${rel_equivalent_discipline.rel_discipline_id}'">
+ <field column="discipline_name"
name="disiplinPadanan"/>
+ </entity>
+
+ </entity>
+
+ </entity>
+
+
+ </entity>
+ <entity name="equivalent"
+ query="select
CONCAT('{"foreign":"',foreign_name,'","language":"',language_name,'","discipline":[',disciplines,']}')
as equivalents from (select foreign_name, language_name, CASE WHEN
GROUP_CONCAT(discipline_name) is null THEN '' ELSE CONCAT('"',
GROUP_CONCAT(discipline_name SEPARATOR '","'), '"') END as
disciplines from equivalent LEFT JOIN `foreign` ON foreign_id =
equivalent_foreign_id LEFT JOIN language ON language_id =
foreign_language_id LEFT JOIN rel_equivalent_discipline ON
rel_equivalent_id = equivalent_id LEFT JOIN discipline ON discipline_id =
rel_discipline_id where equivalent_id = '${equivalents.equivalent_id}'
GROUP BY equivalent_id) temp">
+ <field column="equivalents" name="padanan"/>
+ </entity>
+ </entity>
+
+ </entity>
+ </document>
+</dataConfig>
=======================================
--- /dev/null
+++
/branches/kateglox/vagrant/puppet/modules/kateglo/templates/solrconfig.xml.erb
Fri Jul 27 05:44:43 2012
@@ -0,0 +1,1649 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+
http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<!--
+ For more details about configurations options that may appear in
+ this file, see
http://wiki.apache.org/solr/SolrConfigXml.
+-->
+<config>
+ <!-- In all configuration below, a prefix of "solr." for class names
+ is an alias that causes solr to search appropriate packages,
+ including org.apache.solr.(search|update|request|core|analysis)
+
+ You may also specify a fully qualified Java classname if you
+ have your own custom plugins.
+ -->
+
+ <!-- Set this to 'false' if you want solr to continue working after
+ it has encountered an severe configuration error. In a
+ production environment, you may want solr to keep working even
+ if one handler is mis-configured.
+
+ You may also set this to false using by setting the system
+ property:
+
+ -Dsolr.abortOnConfigurationError=false
+ -->
+
<abortOnConfigurationError>${solr.abortOnConfigurationError:true}</abortOnConfigurationError>
+
+ <!-- Controls what version of Lucene various components of Solr
+ adhere to. Generally, you want to use the latest version to
+ get all bug fixes and improvements. It is highly recommended
+ that you fully re-index after changing this setting as it can
+ affect both how text is indexed and queried.
+ -->
+ <luceneMatchVersion>LUCENE_36</luceneMatchVersion>
+
+ <!-- lib directives can be used to instruct Solr to load an Jars
+ identified and use them to resolve any "plugins" specified in
+ your solrconfig.xml or schema.xml (ie: Analyzers, Request
+ Handlers, etc...).
+
+ All directories and paths are resolved relative to the
+ instanceDir.
+
+ If a "./lib" directory exists in your instanceDir, all files
+ found in it are included as if you had used the following
+ syntax...
+
+ <lib dir="./lib" />
+ -->
+
+ <!-- A 'dir' option by itself adds any files found in the directory
+ to the classpath, this is useful for including all jars in a
+ directory.
+ -->
+ <!--
+ <lib dir="../add-everything-found-in-this-dir-to-the-classpath" />
+ -->
+
+ <!-- When a 'regex' is specified in addition to a 'dir', only the
+ files in that directory which completely match the regex
+ (anchored on both ends) will be included.
+ -->
+ <lib dir="/home/<%= globalUser %>/solr/dist/"
regex="apache-solr-cell-\d.*\.jar" />
+ <lib dir="/home/<%= globalUser %>/solr/contrib/extraction/lib"
regex=".*\.jar" />
+
+ <lib dir="/home/<%= globalUser %>/solr/dist/"
regex="apache-solr-clustering-\d.*\.jar" />
+ <lib dir="/home/<%= globalUser %>/solr/contrib/clustering/lib/"
regex=".*\.jar" />
+
+ <lib dir="/home/<%= globalUser %>/solr/dist/"
regex="apache-solr-dataimporthandler-\d.*\.jar" />
+ <lib dir="/home/<%= globalUser %>/solr/contrib/dataimporthandler/lib/"
regex=".*\.jar" />
+
+ <lib dir="/home/<%= globalUser %>/solr/dist/"
regex="apache-solr-langid-\d.*\.jar" />
+ <lib dir="/home/<%= globalUser %>/solr/contrib/langid/lib/"
regex=".*\.jar" />
+
+ <lib dir="/home/<%= globalUser %>/solr/dist/"
regex="apache-solr-velocity-\d.*\.jar" />
+ <lib dir="/home/<%= globalUser %>/solr/contrib/velocity/lib"
regex=".*\.jar" />
+ <lib dir="/home/<%= globalUser %>/solr/dist/"
regex="mysql-connector-java-\d.*\-bin.jar" />
+
+
+ <!-- If a 'dir' option (with or without a regex) is used and nothing
+ is found that matches, it will be ignored
+ -->
+ <lib dir="/total/crap/dir/ignored" />
+
+ <!-- an exact 'path' can be used instead of a 'dir' to specify a
+ specific file. This will cause a serious error to be logged if
+ it can't be loaded.
+ -->
+ <!--
+ <lib path="../a-jar-that-does-not-exist.jar" />
+ -->
+ <lib dir="../dist/" regex="apache-solr-dataimporthandler-\d.*\.jar" />
+ <!-- Data Directory
+
+ Used to specify an alternate directory to hold all index data
+ other than the default ./data under the Solr home. If
+ replication is in use, this should match the replication
+ configuration.
+ -->
+ <dataDir>${solr.data.dir:}</dataDir>
+
+
+ <!-- The DirectoryFactory to use for indexes.
+
+ solr.StandardDirectoryFactory, the default, is filesystem
+ based and tries to pick the best implementation for the current
+ JVM and platform. One can force a particular implementation
+ via solr.MMapDirectoryFactory, solr.NIOFSDirectoryFactory, or
+ solr.SimpleFSDirectoryFactory.
+
+ solr.RAMDirectoryFactory is memory based, not
+ persistent, and doesn't work with replication.
+ -->
+ <directoryFactory name="DirectoryFactory"
+
class="${solr.directoryFactory:solr.StandardDirectoryFactory}"/>
+
+ <!--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Index Config - These settings control low-level behavior of indexing
+ Most example settings here show the default value, but are commented
+ out, to more easily see where customizations have been made.
+
+ Note: As of Solr 3.6, the <indexDefaults> and <mainIndex> sections
+ are deprecated and not shown in the example config. They will
+ still work, but will go away for good in 4.0
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-->
+ <indexConfig>
+ <!-- maxFieldLength specifies max number of *tokens* indexed per
field. Default: 10000 -->
+ <!-- <maxFieldLength>10000</maxFieldLength> -->
+ <!-- Maximum time to wait for a write lock (ms) for an
IndexWriter. Default: 1000 -->
+ <!-- <writeLockTimeout>1000</writeLockTimeout> -->
+
+ <!-- Expert: Enabling compound file will use less files for the
index,
+using fewer file descriptors on the expense of performance decrease.
+Default in Lucene is "true". Default in Solr is "false" (since 3.6) -->
+ <!-- <useCompoundFile>false</useCompoundFile> -->
+
+ <!-- ramBufferSizeMB sets the amount of RAM that may be used by
Lucene
+indexing for buffering added documents and deletions before they are
+flushed to the Directory.
+maxBufferedDocs sets a limit on the number of documents buffered
+before flushing.
+If both ramBufferSizeMB and maxBufferedDocs is set, then
+Lucene will flush based on whichever limit is hit first. -->
+ <!-- <ramBufferSizeMB>32</ramBufferSizeMB> -->
+ <!-- <maxBufferedDocs>1000</maxBufferedDocs> -->
+
+ <!-- Expert: Merge Policy
+ The Merge Policy in Lucene controls how merging of segments is
done.
+ The default since Solr/Lucene 3.3 is TieredMergePolicy.
+ The default since Lucene 2.3 was the LogByteSizeMergePolicy,
+ Even older versions of Lucene used LogDocMergePolicy.
+ -->
+ <!--
+ <mergePolicy class="org.apache.lucene.index.TieredMergePolicy">
+ <int name="maxMergeAtOnce">10</int>
+ <int name="segmentsPerTier">10</int>
+ </mergePolicy>
+ -->
+
+ <!-- Merge Factor
+ The merge factor controls how many segments will get merged at
a time.
+ For TieredMergePolicy, mergeFactor is a convenience parameter
which
+ will set both MaxMergeAtOnce and SegmentsPerTier at once.
+ For LogByteSizeMergePolicy, mergeFactor decides how many new
segments
+ will be allowed before they are merged into one.
+ Default is 10 for both merge policies.
+ -->
+ <!--
+ <mergeFactor>10</mergeFactor>
+ -->
+
+ <!-- Expert: Merge Scheduler
+ The Merge Scheduler in Lucene controls how merges are
+ performed. The ConcurrentMergeScheduler (Lucene 2.3 default)
+ can perform merges in the background using separate threads.
+ The SerialMergeScheduler (Lucene 2.2 default) does not.
+ -->
+ <!--
+ <mergeScheduler
class="org.apache.lucene.index.ConcurrentMergeScheduler"/>
+ -->
+
+ <!-- LockFactory
+
+ This option specifies which Lucene LockFactory implementation
+ to use.
+
+ single = SingleInstanceLockFactory - suggested for a
+ read-only index or when there is no possibility of
+ another process trying to modify the index.
+ native = NativeFSLockFactory - uses OS native file locking.
+ Do not use when multiple solr webapps in the same
+ JVM are attempting to share a single index.
+ simple = SimpleFSLockFactory - uses a plain file for locking
+
+ Defaults: 'native' is default for Solr3.6 and later, otherwise
+ 'simple' is the default
+
+ More details on the nuances of each LockFactory...
+
http://wiki.apache.org/lucene-java/AvailableLockFactories
+ -->
+ <!-- <lockType>native</lockType> -->
+
+ <!-- Unlock On Startup
+
+ If true, unlock any held write or commit locks on startup.
+ This defeats the locking mechanism that allows multiple
+ processes to safely access a lucene index, and should be used
+ with care. Default is "false".
+
+ This is not needed if lock type is 'none' or 'single'
+ -->
+ <!--
+ <unlockOnStartup>false</unlockOnStartup>
+ -->
+
+ <!-- Expert: Controls how often Lucene loads terms into memory
+ Default is 128 and is likely good for most everyone.
+ -->
+ <!-- <termIndexInterval>128</termIndexInterval> -->
+
+ <!-- If true, IndexReaders will be reopened (often more efficient)
+ instead of closed and then opened. Default: true
+ -->
+ <!--
+ <reopenReaders>true</reopenReaders>
+ -->
+
+ <!-- Commit Deletion Policy
+
+ Custom deletion policies can be specified here. The class must
+ implement org.apache.lucene.index.IndexDeletionPolicy.
+
+
http://lucene.apache.org/java/3_5_0/api/core/org/apache/lucene/index/IndexDeletionPolicy.html
+
+ The default Solr IndexDeletionPolicy implementation supports
+ deleting index commit points on number of commits, age of
+ commit point and optimized status.
+
+ The latest commit point should always be preserved regardless
+ of the criteria.
+ -->
+ <!--
+<deletionPolicy class="solr.SolrDeletionPolicy">
+ -->
+ <!-- The number of commit points to be kept -->
+ <!-- <str name="maxCommitsToKeep">1</str> -->
+ <!-- The number of optimized commit points to be kept -->
+ <!-- <str name="maxOptimizedCommitsToKeep">0</str> -->
+ <!--
+ Delete all commit points once they have reached the given age.
+ Supports DateMathParser syntax e.g.
+ -->
+ <!--
+ <str name="maxCommitAge">30MINUTES</str>
+ <str name="maxCommitAge">1DAY</str>
+ -->
+ <!--
+ </deletionPolicy>
+ -->
+
+ <!-- Lucene Infostream
+
+ To aid in advanced debugging, Lucene provides an "InfoStream"
+ of detailed information when indexing.
+
+ Setting The value to true will instruct the underlying Lucene
+ IndexWriter to write its debugging info the specified file
+ -->
+ <!-- <infoStream file="INFOSTREAM.txt">false</infoStream> -->
+ </indexConfig>
+
+
+ <!-- JMX
+
+ This example enables JMX if and only if an existing MBeanServer
+ is found, use this if you want to configure JMX through JVM
+ parameters. Remove this to disable exposing Solr configuration
+ and statistics to JMX.
+
+ For more details see
http://wiki.apache.org/solr/SolrJmx
+ -->
+ <jmx />
+ <!-- If you want to connect to a particular server, specify the
+ agentId
+ -->
+ <!-- <jmx agentId="myAgent" /> -->
+ <!-- If you want to start a new MBeanServer, specify the serviceUrl -->
+ <!-- <jmx
serviceUrl="service:jmx:rmi:///jndi/rmi://localhost:9999/solr"/>
+ -->
+
+ <!-- The default high-performance update handler -->
+ <updateHandler class="solr.DirectUpdateHandler2">
+
+ <!-- AutoCommit
+
+ Perform a <commit/> automatically under certain conditions.
+ Instead of enabling autoCommit, consider using "commitWithin"
+ when adding documents.
+
+
http://wiki.apache.org/solr/UpdateXmlMessages
+
+ maxDocs - Maximum number of documents to add since the last
+ commit before automatically triggering a new commit.
+
+ maxTime - Maximum amount of time that is allowed to pass
+ since a document was added before automaticly
+ triggering a new commit.
+ -->
+ <!--
+ <autoCommit>
+ <maxDocs>10000</maxDocs>
+ <maxTime>1000</maxTime>
+ </autoCommit>
+ -->
+
+ <!-- Update Related Event Listeners
+
+ Various IndexWriter related events can trigger Listeners to
+ take actions.
+
+ postCommit - fired after every commit or optimize command
+ postOptimize - fired after every optimize command
+ -->
+ <!-- The RunExecutableListener executes an external command from a
+ hook such as postCommit or postOptimize.
+
+ exe - the name of the executable to run
+ dir - dir to use as the current working directory. (default=".")
+ wait - the calling thread waits until the executable returns.
+ (default="true")
+ args - the arguments to pass to the program. (default is none)
+ env - environment variables to set. (default is none)
+ -->
+ <!-- This example shows how RunExecutableListener could be used
+ with the script based replication...
+
http://wiki.apache.org/solr/CollectionDistribution
+ -->
+ <!--
+ <listener event="postCommit" class="solr.RunExecutableListener">
+ <str name="exe">solr/bin/snapshooter</str>
+ <str name="dir">.</str>
+ <bool name="wait">true</bool>
+ <arr name="args"> <str>arg1</str> <str>arg2</str> </arr>
+ <arr name="env"> <str>MYVAR=val1</str> </arr>
+ </listener>
+ -->
+ </updateHandler>
+
+ <!-- IndexReaderFactory
+
+ Use the following format to specify a custom IndexReaderFactory,
+ which allows for alternate IndexReader implementations.
+
+ ** Experimental Feature **
+
+ Please note - Using a custom IndexReaderFactory may prevent
+ certain other features from working. The API to
+ IndexReaderFactory may change without warning or may even be
+ removed from future releases if the problems cannot be
+ resolved.
+
+
+ ** Features that may not work with custom IndexReaderFactory **
+
+ The ReplicationHandler assumes a disk-resident index. Using a
+ custom IndexReader implementation may cause incompatibility
+ with ReplicationHandler and may cause replication to not work
+ correctly. See SOLR-1366 for details.
+
+ -->
+ <!--
+ <indexReaderFactory name="IndexReaderFactory" class="package.class">
+ <str name="someArg">Some Value</str>
+ </indexReaderFactory >
+ -->
+ <!-- By explicitly declaring the Factory, the termIndexDivisor can
+ be specified.
+ -->
+ <!--
+ <indexReaderFactory name="IndexReaderFactory"
+ class="solr.StandardIndexReaderFactory">
+ <int name="setTermIndexDivisor">12</int>
+ </indexReaderFactory >
+ -->
+
+ <!--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Query section - these settings control query time things like caches
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-->
+ <query>
+ <!-- Max Boolean Clauses
+
+ Maximum number of clauses in each BooleanQuery, an exception
+ is thrown if exceeded.
+
+ ** WARNING **
+
+ This option actually modifies a global Lucene property that
+ will affect all SolrCores. If multiple solrconfig.xml files
+ disagree on this property, the value at any given moment will
+ be based on the last SolrCore to be initialized.
+
+ -->
+ <maxBooleanClauses>1024</maxBooleanClauses>
+
+
+ <!-- Solr Internal Query Caches
+
+ There are two implementations of cache available for Solr,
+ LRUCache, based on a synchronized LinkedHashMap, and
+ FastLRUCache, based on a ConcurrentHashMap.
+
+ FastLRUCache has faster gets and slower puts in single
+ threaded operation and thus is generally faster than LRUCache
+ when the hit ratio of the cache is high (> 75%), and may be
+ faster under other scenarios on multi-cpu systems.
+ -->
+
+ <!-- Filter Cache
+
+ Cache used by SolrIndexSearcher for filters (DocSets),
+ unordered sets of *all* documents that match a query. When a
+ new searcher is opened, its caches may be prepopulated or
+ "autowarmed" using data from caches in the old searcher.
+ autowarmCount is the number of items to prepopulate. For
+ LRUCache, the autowarmed items will be the most recently
+ accessed items.
+
+ Parameters:
+ class - the SolrCache implementation LRUCache or
+ (LRUCache or FastLRUCache)
+ size - the maximum number of entries in the cache
+ initialSize - the initial capacity (number of entries) of
+ the cache. (see java.util.HashMap)
+ autowarmCount - the number of entries to prepopulate from
+ and old cache.
+ -->
+ <filterCache class="solr.FastLRUCache"
+ size="512"
+ initialSize="512"
+ autowarmCount="0"/>
+
+ <!-- Query Result Cache
+
+ Caches results of searches - ordered lists of document ids
+ (DocList) based on a query, a sort, and the range of documents
+ requested.
+ -->
+ <queryResultCache class="solr.LRUCache"
+ size="512"
+ initialSize="512"
+ autowarmCount="0"/>
+
+ <!-- Document Cache
+
+ Caches Lucene Document objects (the stored fields for each
+ document). Since Lucene internal document ids are transient,
+ this cache will not be autowarmed.
+ -->
+ <documentCache class="solr.LRUCache"
+ size="512"
+ initialSize="512"
+ autowarmCount="0"/>
+
+ <!-- Field Value Cache
+
+ Cache used to hold field values that are quickly accessible
+ by document id. The fieldValueCache is created by default
+ even if not configured here.
+ -->
+ <!--
+ <fieldValueCache class="solr.FastLRUCache"
+ size="512"
+ autowarmCount="128"
+ showItems="32" />
+ -->
+
+ <!-- Custom Cache
+
+ Example of a generic cache. These caches may be accessed by
+ name through SolrIndexSearcher.getCache(),cacheLookup(), and
+ cacheInsert(). The purpose is to enable easy caching of
+ user/application level data. The regenerator argument should
+ be specified as an implementation of solr.CacheRegenerator
+ if autowarming is desired.
+ -->
+ <!--
+ <cache name="myUserCache"
+ class="solr.LRUCache"
+ size="4096"
+ initialSize="1024"
+ autowarmCount="1024"
+ regenerator="com.mycompany.MyRegenerator"
+ />
+ -->
+
+
+ <!-- Lazy Field Loading
+
+ If true, stored fields that are not requested will be loaded
+ lazily. This can result in a significant speed improvement
+ if the usual case is to not load all stored fields,
+ especially if the skipped fields are large compressed text
+ fields.
+ -->
+ <enableLazyFieldLoading>true</enableLazyFieldLoading>
+
+ <!-- Use Filter For Sorted Query
+
+ A possible optimization that attempts to use a filter to
+ satisfy a search. If the requested sort does not include
+ score, then the filterCache will be checked for a filter
+ matching the query. If found, the filter will be used as the
+ source of document ids, and then the sort will be applied to
+ that.
+
+ For most situations, this will not be useful unless you
+ frequently get the same search repeatedly with different sort
+ options, and none of them ever use "score"
+ -->
+ <!--
+ <useFilterForSortedQuery>true</useFilterForSortedQuery>
+ -->
+
+ <!-- Result Window Size
+
+ An optimization for use with the queryResultCache. When a search
+ is requested, a superset of the requested number of document ids
+ are collected. For example, if a search for a particular query
+ requests matching documents 10 through 19, and queryWindowSize
+ is 50, then documents 0 through 49 will be collected and cached.
+ Any further requests in that range can be satisfied via the cache.
+ -->
+ <queryResultWindowSize>20</queryResultWindowSize>
+
+ <!-- Maximum number of documents to cache for any entry in the
+ queryResultCache.
+ -->
+ <queryResultMaxDocsCached>200</queryResultMaxDocsCached>
+
+ <!-- Query Related Event Listeners
+
+ Various IndexSearcher related events can trigger Listeners to
+ take actions.
+
+ newSearcher - fired whenever a new searcher is being prepared
+ and there is a current searcher handling requests (aka
+ registered). It can be used to prime certain caches to
+ prevent long request times for certain requests.
+
+ firstSearcher - fired whenever a new searcher is being
+ prepared but there is no current registered searcher to handle
+ requests or to gain autowarming data from.
+
+
+ -->
+ <!-- QuerySenderListener takes an array of NamedList and executes a
+ local query request for each NamedList in sequence.
+ -->
+ <listener event="newSearcher" class="solr.QuerySenderListener">
+ <arr name="queries">
+ <!--
+ <lst><str name="q">solr</str><str name="sort">price
asc</str></lst>
+ <lst><str name="q">rocks</str><str name="sort">weight
asc</str></lst>
+ -->
+ </arr>
+ </listener>
+ <listener event="firstSearcher" class="solr.QuerySenderListener">
+ <arr name="queries">
+ <lst>
+ <str name="q">static firstSearcher warming in
solrconfig.xml</str>
+ </lst>
+ </arr>
+ </listener>
+
+ <!-- Use Cold Searcher
+
+ If a search request comes in and there is no current
+ registered searcher, then immediately register the still
+ warming searcher and use it. If "false" then all requests
+ will block until the first searcher is done warming.
+ -->
+ <useColdSearcher>false</useColdSearcher>
+
+ <!-- Max Warming Searchers
+
+ Maximum number of searchers that may be warming in the
+ background concurrently. An error is returned if this limit
+ is exceeded.
+
+ Recommend values of 1-2 for read-only slaves, higher for
+ masters w/o cache warming.
+ -->
+ <maxWarmingSearchers>2</maxWarmingSearchers>
+
+ </query>
+
+
+ <!-- Request Dispatcher
+
+ This section contains instructions for how the SolrDispatchFilter
+ should behave when processing requests for this SolrCore.
+
+ If you wish to regain use of /select?qt=... style request handler
+ dispatching, then first add handleSelect="true" to
+ <requestDispatcher>. Then change the name of the request handler
+ named "/select" to something else without a leading "/", such as
+ simply "select" and add default="true" to it.
+ -->
+ <requestDispatcher>
+ <!-- Request Parsing
+
+ These settings indicate how Solr Requests may be parsed, and
+ what restrictions may be placed on the ContentStreams from
+ those requests
+
+ enableRemoteStreaming - enables use of the stream.file
+ and stream.url parameters for specifying remote streams.
+ SearchRequestHandler won't fetch it, but some others do.
+
+ multipartUploadLimitInKB - specifies the max size of
+ Multipart File Uploads that Solr will allow in a Request.
+
+ *** WARNING ***
+ The settings below authorize Solr to fetch remote files, You
+ should make sure your system has some authentication before
+ using enableRemoteStreaming="true"
+
+ -->
+ <requestParsers enableRemoteStreaming="true"
+ multipartUploadLimitInKB="2048000" />
+
+ <!-- HTTP Caching
+
+ Set HTTP caching related parameters (for proxy caches and
clients).
+
+ The options below instruct Solr not to output any HTTP Caching
+ related headers
+ -->
+ <httpCaching never304="true" />
+ <!-- If you include a <cacheControl> directive, it will be used to
+ generate a Cache-Control header (as well as an Expires header
+ if the value contains "max-age=")
+
+ By default, no Cache-Control header is generated.
+
+ You can use the <cacheControl> option even if you have set
+ never304="true"
+ -->
+ <!--
+ <httpCaching never304="true" >
+ <cacheControl>max-age=30, public</cacheControl>
+ </httpCaching>
+ -->
+ <!-- To enable Solr to respond with automatically generated HTTP
+ Caching headers, and to response to Cache Validation requests
+ correctly, set the value of never304="false"
+
+ This will cause Solr to generate Last-Modified and ETag
+ headers based on the properties of the Index.
+
+ The following options can also be specified to affect the
+ values of these headers...
+
+ lastModFrom - the default value is "openTime" which means the
+ Last-Modified value (and validation against If-Modified-Since
+ requests) will all be relative to when the current Searcher
+ was opened. You can change it to lastModFrom="dirLastMod" if
+ you want the value to exactly correspond to when the physical
+ index was last modified.
+
+ etagSeed="..." is an option you can change to force the ETag
+ header (and validation against If-None-Match requests) to be
+ different even if the index has not changed (ie: when making
+ significant changes to your config file)
+
+ (lastModifiedFrom and etagSeed are both ignored if you use
+ the never304="true" option)
+ -->
+ <!--
+ <httpCaching lastModifiedFrom="openTime"
+ etagSeed="Solr">
+ <cacheControl>max-age=30, public</cacheControl>
+ </httpCaching>
+ -->
+ </requestDispatcher>
+
+ <!-- Request Handlers
+
+
http://wiki.apache.org/solr/SolrRequestHandler
+
+ Incoming queries will be dispatched to the correct handler
+ based on the matching request path piece.
+
+ If a Request Handler is declared with startup="lazy", then it will
+ not be initialized until the first request that uses it.
+
+ -->
+ <!-- SearchHandler
+
+
http://wiki.apache.org/solr/SearchHandler
+
+ For processing Search Queries, the primary Request Handler
+ provided with Solr is "SearchHandler" It delegates to a sequent
+ of SearchComponents (see below) and supports distributed
+ queries across multiple shards
+ -->
+ <requestHandler name="/select" class="solr.SearchHandler"
default="true">
+ <!-- default values for query parameters can be specified, these
+ will be overridden by parameters in the request
+ -->
+ <lst name="defaults">
+ <str name="echoParams">explicit</str>
+ <int name="rows">10</int>
+ <str name="spellcheck.onlyMorePopular">false</str>
+ <str name="spellcheck.extendedResults">false</str>
+ <str name="spellcheck.count">10</str>
+ <str name="spellcheck.collate">true</str>
+ <str name="spellcheck.maxCollationTries">100</str>
+ </lst>
+ <!-- In addition to defaults, "appends" params can be specified
+ to identify values which should be appended to the list of
+ multi-val params from the query (or the existing "defaults").
+ -->
+ <!-- In this example, the param "fq=instock:true" would be
appended to
+ any query time fq params the user may specify, as a mechanism
for
+ partitioning the index, independent of any user selected
filtering
+ that may also be desired (perhaps as a result of faceted
searching).
+
+ NOTE: there is *absolutely* nothing a client can do to prevent
these
+ "appends" values from being used, so don't use this mechanism
+ unless you are sure you always want it.
+ -->
+ <!--
+ <lst name="appends">
+ <str name="fq">inStock:true</str>
+ </lst>
+ -->
+ <!-- "invariants" are a way of letting the Solr maintainer lock
down
+ the options available to Solr clients. Any params values
+ specified here are used regardless of what values may be
specified
+ in either the query, the "defaults", or the "appends" params.
+
+ In this example, the facet.field and facet.query params would
+ be fixed, limiting the facets clients can use. Faceting is
+ not turned on by default - but if the client does specify
+ facet=true in the request, these are the only facets they
+ will be able to see counts for; regardless of what other
+ facet.field or facet.query params they may specify.
+
+ NOTE: there is *absolutely* nothing a client can do to prevent
these
+ "invariants" values from being used, so don't use this mechanism
+ unless you are sure you always want it.
+ -->
+ <!--
+ <lst name="invariants">
+ <str name="facet.field">cat</str>
+ <str name="facet.field">manu_exact</str>
+ <str name="facet.query">price:[* TO 500]</str>
+ <str name="facet.query">price:[500 TO *]</str>
+ </lst>
+ -->
+ <!-- If the default list of SearchComponents is not desired, that
+ list can either be overridden completely, or components can be
+ prepended or appended to the default list. (see below)
+ -->
+ <!--
+ <arr name="components">
+ <str>nameOfCustomComponent1</str>
+ <str>nameOfCustomComponent2</str>
+ </arr>
+ -->
+ <arr name="last-components">
+ <str>spellcheck</str>
+ </arr>
+ </requestHandler>
+
+ <!-- A Robust Example
+
+ This example SearchHandler declaration shows off usage of the
+ SearchHandler with many defaults declared
+
+ Note that multiple instances of the same Request Handler
+ (SearchHandler) can be registered multiple times with different
+ names (and different init parameters)
+ -->
+ <requestHandler name="/browse" class="solr.SearchHandler">
+ <lst name="defaults">
+ <str name="echoParams">explicit</str>
+
+ <!-- VelocityResponseWriter settings -->
+ <str name="wt">velocity</str>
+
+ <str name="v.template">browse</str>
+ <str name="v.layout">layout</str>
+ <str name="title">Solritas</str>
+
+ <str name="df">text</str>
+ <str name="defType">edismax</str>
+ <str name="q.alt">*:*</str>
+ <str name="rows">10</str>
+ <str name="fl">*,score</str>
+ <str name="mlt.qf">
+ text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
+ </str>
+ <str name="mlt.fl">text,features,name,sku,id,manu,cat</str>
+ <int name="mlt.count">3</int>
+
+ <str name="qf">
+ text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
+ </str>
+
+ <str name="facet">on</str>
+ <str name="facet.field">cat</str>
+ <str name="facet.field">manu_exact</str>
+ <str name="facet.query">ipod</str>
+ <str name="facet.query">GB</str>
+ <str name="facet.mincount">1</str>
+ <str name="facet.pivot">cat,inStock</str>
+ <str name="facet.range.other">after</str>
+ <str name="facet.range">price</str>
+ <int name="f.price.facet.range.start">0</int>
+ <int name="f.price.facet.range.end">600</int>
+ <int name="f.price.facet.range.gap">50</int>
+ <str name="f.price.facet.range.other">after</str>
+ <str name="facet.range">popularity</str>
+ <int name="f.popularity.facet.range.start">0</int>
+ <int name="f.popularity.facet.range.end">10</int>
+ <int name="f.popularity.facet.range.gap">3</int>
+ <str name="facet.range">manufacturedate_dt</str>
+ <str
name="f.manufacturedate_dt.facet.range.start">NOW/YEAR-10YEARS</str>
+ <str name="f.manufacturedate_dt.facet.range.end">NOW</str>
+ <str name="f.manufacturedate_dt.facet.range.gap">+1YEAR</str>
+ <str name="f.manufacturedate_dt.facet.range.other">before</str>
+ <str name="f.manufacturedate_dt.facet.range.other">after</str>
+
+
+ <!-- Highlighting defaults -->
+ <str name="hl">on</str>
+ <str name="hl.fl">text features name</str>
+ <str name="f.name.hl.fragsize">0</str>
+ <str name="f.name.hl.alternateField">name</str>
+ </lst>
+ <arr name="last-components">
+ <str>spellcheck</str>
+ </arr>
+ <!--
+ <str name="url-scheme">httpx</str>
+ -->
+ </requestHandler>
+
+ <!-- XML Update Request Handler.
+
+
http://wiki.apache.org/solr/UpdateXmlMessages
+
+ The canonical Request Handler for Modifying the Index through
+ commands specified using XML.
+
+ Note: Since solr1.1 requestHandlers requires a valid content
+ type header if posted in the body. For example, curl now
+ requires: -H 'Content-type:text/xml; charset=utf-8'
+ -->
+ <requestHandler name="/update"
+ class="solr.XmlUpdateRequestHandler">
+ <!-- See below for information on defining
+ updateRequestProcessorChains that can be used by name
+ on each Update Request
+ -->
+ <!--
+ <lst name="defaults">
+ <str name="update.chain">dedupe</str>
+ </lst>
+ -->
+ </requestHandler>
+ <!-- Binary Update Request Handler
+
http://wiki.apache.org/solr/javabin
+ -->
+ <requestHandler name="/update/javabin"
+ class="solr.BinaryUpdateRequestHandler" />
+
+ <!-- CSV Update Request Handler
+
http://wiki.apache.org/solr/UpdateCSV
+ -->
+ <requestHandler name="/update/csv"
+ class="solr.CSVRequestHandler"
+ startup="lazy" />
+
+ <!-- JSON Update Request Handler
+
http://wiki.apache.org/solr/UpdateJSON
+ -->
+ <requestHandler name="/update/json"
+ class="solr.JsonUpdateRequestHandler"
+ startup="lazy" />
+
+ <!-- Solr Cell Update Request Handler
+
+
http://wiki.apache.org/solr/ExtractingRequestHandler
+
+ -->
+ <requestHandler name="/update/extract"
+ startup="lazy"
+ class="solr.extraction.ExtractingRequestHandler" >
+ <lst name="defaults">
+ <!-- All the main content goes into "text"... if you need to return
+ the extracted text or do highlighting, use a stored field. -->
+ <str name="fmap.content">text</str>
+ <str name="lowernames">true</str>
+ <str name="uprefix">ignored_</str>
+
+ <!-- capture link hrefs but ignore div attributes -->
+ <str name="captureAttr">true</str>
+ <str name="fmap.a">links</str>
+ <str name="fmap.div">ignored_</str>
+ </lst>
+ </requestHandler>
+
+ <!-- XSLT Update Request Handler
+ Transforms incoming XML with stylesheet identified by tr=
+ -->
+ <requestHandler name="/update/xslt"
+ startup="lazy"
+ class="solr.XsltUpdateRequestHandler"/>
+
+ <!-- Field Analysis Request Handler
+
+ RequestHandler that provides much the same functionality as
+ analysis.jsp. Provides the ability to specify multiple field
+ types and field names in the same request and outputs
+ index-time and query-time analysis for each of them.
+
+ Request parameters are:
+ analysis.fieldname - field name whose analyzers are to be used
+
+ analysis.fieldtype - field type whose analyzers are to be used
+ analysis.fieldvalue - text for index-time analysis
+ q (or analysis.q) - text for query time analysis
+ analysis.showmatch (true|false) - When set to true and when
+ query analysis is performed, the produced tokens of the
+ field value analysis will be marked as "matched" for every
+ token that is produces by the query analysis
+ -->
+ <requestHandler name="/analysis/field"
+ startup="lazy"
+ class="solr.FieldAnalysisRequestHandler" />
+
+
+ <!-- Document Analysis Handler
+
+
http://wiki.apache.org/solr/AnalysisRequestHandler
+
+ An analysis handler that provides a breakdown of the analysis
+ process of provided docuemnts. This handler expects a (single)
+ content stream with the following format:
+
+ <docs>
+ <doc>
+ <field name="id">1</field>
+ <field name="name">The Name</field>
+ <field name="text">The Text Value</field>
+ </doc>
+ <doc>...</doc>
+ <doc>...</doc>
+ ...
+ </docs>
+
+ Note: Each document must contain a field which serves as the
+ unique key. This key is used in the returned response to associate
+ an analysis breakdown to the analyzed document.
+
+ Like the FieldAnalysisRequestHandler, this handler also supports
+ query analysis by sending either an "analysis.query" or "q"
+ request parameter that holds the query text to be analyzed. It
+ also supports the "analysis.showmatch" parameter which when set to
+ true, all field tokens that match the query tokens will be marked
+ as a "match".
+ -->
+ <requestHandler name="/analysis/document"
+ class="solr.DocumentAnalysisRequestHandler"
+ startup="lazy" />
+
+ <!-- Admin Handlers
+
+ Admin Handlers - This will register all the standard admin
***The diff for this file has been truncated for email.***
=======================================
--- /branches/kateglox/vagrant/puppet/modules/kateglo/files/data-config.xml
Sat Jul 21 04:14:51 2012
+++ /dev/null
@@ -1,160 +0,0 @@
-<dataConfig>
- <dataSource type="JdbcDataSource" driver="com.mysql.jdbc.Driver"
url="jdbc:mysql://
127.0.0.1/kateglox" user="root"
- password=""/>
- <document name="entries">
- <entity name="entry" query="select * from entry">
-
- <field column="entry_id" name="id"/>
- <field column="entry_name" name="entri"/>
-
- <entity name="meaning" query="select * from meaning where
meaning_entry_id='${entry.entry_id}'">
-
- <entity name="antonym" query="select * from antonym where
antonym_meaning_id='${meaning.meaning_id}'">
- <entity name="antonym_meaning"
- query="select * from meaning where
meaning_id='${antonym.antonym_antonym_id}'">
- <entity name="antonym_meaning_entry"
- query="select * from entry where
entry_id='${antonym_meaning.meaning_entry_id}'">
- <field column="entry_name" name="antonim"/>
- </entity>
- </entity>
- </entity>
-
- <entity name="definition"
- query="select * from definition where
definition_meaning_id='${meaning.meaning_id}'">
- <field column="definition_text" name="definisi"/>
-
- <entity name="definition_class"
- query="select * from rel_definition_class
where rel_definition_id='${definition.definition_id}'">
- <entity name="class"
- query="select * from class where
class_id='${definition_class.rel_class_id}'">
- <field column="class_name" name="kelas"/>
-
- <entity name="rel_class_category"
- query="select * from
rel_class_category where rel_class_id='${class.class_id}'">
- <entity name="class_category"
- query="select * from
class_category where
class_category_id='${rel_class_category.rel_class_category_id}'">
- <field column="class_category_name"
name="kategoriKelas"/>
- </entity>
- </entity>
- </entity>
- </entity>
-
- <entity name="definition_discipline"
- query="select * from rel_definition_discipline
where rel_definition_id='${definition.definition_id}'">
- <entity name="definition" query="select * from
discipline where
discipline_id='${definition_discipline.rel_discipline_id}'">
- <field column="discipline_name"
name="disiplin" />
- </entity>
- </entity>
-
- <entity name="sample"
- query="select * from sample where
sample_definition_id='${definition.definition_id}'">
- <field column="sample_text" name="contoh"/>
- </entity>
-
- </entity>
-
- <entity name="misspelled"
- query="select * from misspelled where
misspelled_meaning_id='${meaning.meaning_id}'">
- <entity name="misspelled_meaning"
- query="select * from meaning where
meaning_id='${misspelled.misspelled_misspelled_id}'">
- <entity name="misspelled_meaning_entry"
- query="select * from entry where
entry_id='${misspelled_meaning.meaning_entry_id}'">
- <field column="entry_name" name="salahEja"/>
- </entity>
- </entity>
- </entity>
-
- <entity name="relation"
- query="select * from relation where
relation_meaning_id='${meaning.meaning_id}'">
- <entity name="relation_meaning"
- query="select * from meaning where
meaning_id='${relation.relation_relation_id}'">
- <entity name="relation_meaning_entry"
- query="select * from entry where
entry_id='${relation_meaning.meaning_entry_id}'">
- <field column="entry_name" name="relasi"/>
- </entity>
- </entity>
- </entity>
-
- <entity name="synonym" query="select * from synonym where
synonym_meaning_id='${meaning.meaning_id}'">
- <entity name="synonym_meaning"
- query="select * from meaning where
meaning_id='${synonym.synonym_synonym_id}'">
- <entity name="synonym_meaning_entry"
- query="select * from entry where
entry_id='${synonym_meaning.meaning_entry_id}'">
- <field column="entry_name" name="sinonim"/>
- </entity>
- </entity>
- </entity>
-
- <entity name="spelled"
- query="select * from misspelled where
misspelled_misspelled_id='${meaning.meaning_id}'">
- <entity name="spelled_meaning"
- query="select * from meaning where
meaning_id='${spelled.misspelled_meaning_id}'">
- <entity name="spelled_meaning_entry"
- query="select * from entry where
entry_id='${spelled_meaning.meaning_entry_id}'">
- <field column="entry_name" name="ejaan"/>
- </entity>
- </entity>
- </entity>
-
- <entity name="syllabel"
- query="select * from syllabel where
syllabel_meaning_id='${meaning.meaning_id}'">
- <field column="syllabel_text" name="silabel"/>
- </entity>
-
- <entity name="meaning_type"
- query="select * from rel_meaning_type where
rel_meaning_id='${meaning.meaning_id}'">
- <entity name="type" query="select * from type where
type_id='${meaning_type.rel_type_id}'">
- <field column="type_name" name="bentuk"/>
-
- <entity name="rel_type_category"
- query="select * from rel_type_category
where rel_type_id='${type.type_id}'">
- <entity name="type_category"
- query="select * from type_category
where type_category_id='${rel_type_category.rel_type_category_id}'">
- <field column="type_category_name"
name="kategoriBentuk"/>
- </entity>
- </entity>
- </entity>
- </entity>
-
- </entity>
-
- <entity name="source" query="select * from source where
source_entry_id='${entry.entry_id}'">
- <field column="source_text_clean" name="sumber"/>
-
- <entity name="source_category"
- query="select * from source_category where
source_category_id = '${source.source_category_id}'">
- <field column="source_category_name"
name="kategoriSumber"/>
- </entity>
- </entity>
-
- <entity name="equivalents" query="select * from equivalent
where equivalent_entry_id='${entry.entry_id}'">
- <entity name="foreign"
- query="select * from `foreign` where foreign_id
= '${equivalents.equivalent_foreign_id}'">
- <field column="foreign_name" name="asing"/>
-
- <entity name="language"
- query="select * from language where
language_id='${foreign.foreign_language_id}'">
- <field column="language_name" name="bahasa"/>
-
- <entity name="rel_equivalent_discipline"
- query="select * from
rel_equivalent_discipline where
rel_equivalent_id='${equivalents.equivalent_id}'">
- <entity name="equivalent_discipline"
- query="select * from discipline where
discipline_id='${rel_equivalent_discipline.rel_discipline_id}'">
- <field column="discipline_name"
name="disiplinPadanan"/>
- </entity>
-
- </entity>
-
- </entity>
-
-
- </entity>
- <entity name="equivalent"
- query="select
CONCAT('{"foreign":"',foreign_name,'","language":"',language_name,'","discipline":[',disciplines,']}')
as equivalents from (select foreign_name, language_name, CASE WHEN
GROUP_CONCAT(discipline_name) is null THEN '' ELSE CONCAT('"',
GROUP_CONCAT(discipline_name SEPARATOR '","'), '"') END as
disciplines from equivalent LEFT JOIN `foreign` ON foreign_id =
equivalent_foreign_id LEFT JOIN language ON language_id =
foreign_language_id LEFT JOIN rel_equivalent_discipline ON
rel_equivalent_id = equivalent_id LEFT JOIN discipline ON discipline_id =
rel_discipline_id where equivalent_id = '${equivalents.equivalent_id}'
GROUP BY equivalent_id) temp">
- <field column="equivalents" name="padanan"/>
- </entity>
- </entity>
-
- </entity>
- </document>
-</dataConfig>
=======================================
--- /branches/kateglox/vagrant/puppet/modules/kateglo/files/solrconfig.xml
Sat Jul 21 04:14:51 2012
+++ /dev/null
@@ -1,1649 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
-
http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-
-<!--
- For more details about configurations options that may appear in
- this file, see
http://wiki.apache.org/solr/SolrConfigXml.
--->
-<config>
- <!-- In all configuration below, a prefix of "solr." for class names
- is an alias that causes solr to search appropriate packages,
- including org.apache.solr.(search|update|request|core|analysis)
-
- You may also specify a fully qualified Java classname if you
- have your own custom plugins.
- -->
-
- <!-- Set this to 'false' if you want solr to continue working after
- it has encountered an severe configuration error. In a
- production environment, you may want solr to keep working even
- if one handler is mis-configured.
-
- You may also set this to false using by setting the system
- property:
-
- -Dsolr.abortOnConfigurationError=false
- -->
-
<abortOnConfigurationError>${solr.abortOnConfigurationError:true}</abortOnConfigurationError>
-
- <!-- Controls what version of Lucene various components of Solr
- adhere to. Generally, you want to use the latest version to
- get all bug fixes and improvements. It is highly recommended
- that you fully re-index after changing this setting as it can
- affect both how text is indexed and queried.
- -->
- <luceneMatchVersion>LUCENE_36</luceneMatchVersion>
-
- <!-- lib directives can be used to instruct Solr to load an Jars
- identified and use them to resolve any "plugins" specified in
- your solrconfig.xml or schema.xml (ie: Analyzers, Request
- Handlers, etc...).
-
- All directories and paths are resolved relative to the
- instanceDir.
-
- If a "./lib" directory exists in your instanceDir, all files
- found in it are included as if you had used the following
- syntax...
-
- <lib dir="./lib" />
- -->
-
- <!-- A 'dir' option by itself adds any files found in the directory
- to the classpath, this is useful for including all jars in a
- directory.
- -->
- <!--
- <lib dir="../add-everything-found-in-this-dir-to-the-classpath" />
- -->
-
- <!-- When a 'regex' is specified in addition to a 'dir', only the
- files in that directory which completely match the regex
- (anchored on both ends) will be included.
- -->
- <lib dir="/home/vagrant/solr/dist/" regex="apache-solr-cell-\d.*\.jar" />
- <lib dir="/home/vagrant/solr/contrib/extraction/lib" regex=".*\.jar" />
-
- <lib dir="/home/vagrant/solr/dist/"
regex="apache-solr-clustering-\d.*\.jar" />
- <lib dir="/home/vagrant/solr/contrib/clustering/lib/" regex=".*\.jar"
/>
-
- <lib dir="/home/vagrant/solr/dist/"
regex="apache-solr-dataimporthandler-\d.*\.jar" />
- <lib dir="/home/vagrant/solr/contrib/dataimporthandler/lib/"
regex=".*\.jar" />
-
- <lib dir="/home/vagrant/solr/dist/"
regex="apache-solr-langid-\d.*\.jar" />
- <lib dir="/home/vagrant/solr/contrib/langid/lib/" regex=".*\.jar" />
-
- <lib dir="/home/vagrant/solr/dist/"
regex="apache-solr-velocity-\d.*\.jar" />
- <lib dir="/home/vagrant/solr/contrib/velocity/lib" regex=".*\.jar" />
- <lib dir="/home/vagrant/solr/dist/"
regex="mysql-connector-java-\d.*\-bin.jar" />
-
-
- <!-- If a 'dir' option (with or without a regex) is used and nothing
- is found that matches, it will be ignored
- -->
- <lib dir="/total/crap/dir/ignored" />
-
- <!-- an exact 'path' can be used instead of a 'dir' to specify a
- specific file. This will cause a serious error to be logged if
- it can't be loaded.
- -->
- <!--
- <lib path="../a-jar-that-does-not-exist.jar" />
- -->
- <lib dir="../dist/" regex="apache-solr-dataimporthandler-\d.*\.jar" />
- <!-- Data Directory
-
- Used to specify an alternate directory to hold all index data
- other than the default ./data under the Solr home. If
- replication is in use, this should match the replication
- configuration.
- -->
- <dataDir>${solr.data.dir:}</dataDir>
-
-
- <!-- The DirectoryFactory to use for indexes.
-
- solr.StandardDirectoryFactory, the default, is filesystem
- based and tries to pick the best implementation for the current
- JVM and platform. One can force a particular implementation
- via solr.MMapDirectoryFactory, solr.NIOFSDirectoryFactory, or
- solr.SimpleFSDirectoryFactory.
-
- solr.RAMDirectoryFactory is memory based, not
- persistent, and doesn't work with replication.
- -->
- <directoryFactory name="DirectoryFactory"
-
class="${solr.directoryFactory:solr.StandardDirectoryFactory}"/>
-
- <!--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Index Config - These settings control low-level behavior of indexing
- Most example settings here show the default value, but are commented
- out, to more easily see where customizations have been made.
-
- Note: As of Solr 3.6, the <indexDefaults> and <mainIndex> sections
- are deprecated and not shown in the example config. They will
- still work, but will go away for good in 4.0
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-->
- <indexConfig>
- <!-- maxFieldLength specifies max number of *tokens* indexed per
field. Default: 10000 -->
- <!-- <maxFieldLength>10000</maxFieldLength> -->
- <!-- Maximum time to wait for a write lock (ms) for an
IndexWriter. Default: 1000 -->
- <!-- <writeLockTimeout>1000</writeLockTimeout> -->
-
- <!-- Expert: Enabling compound file will use less files for the
index,
-using fewer file descriptors on the expense of performance decrease.
-Default in Lucene is "true". Default in Solr is "false" (since 3.6) -->
- <!-- <useCompoundFile>false</useCompoundFile> -->
-
- <!-- ramBufferSizeMB sets the amount of RAM that may be used by
Lucene
-indexing for buffering added documents and deletions before they are
-flushed to the Directory.
-maxBufferedDocs sets a limit on the number of documents buffered
-before flushing.
-If both ramBufferSizeMB and maxBufferedDocs is set, then
-Lucene will flush based on whichever limit is hit first. -->
- <!-- <ramBufferSizeMB>32</ramBufferSizeMB> -->
- <!-- <maxBufferedDocs>1000</maxBufferedDocs> -->
-
- <!-- Expert: Merge Policy
- The Merge Policy in Lucene controls how merging of segments is
done.
- The default since Solr/Lucene 3.3 is TieredMergePolicy.
- The default since Lucene 2.3 was the LogByteSizeMergePolicy,
- Even older versions of Lucene used LogDocMergePolicy.
- -->
- <!--
- <mergePolicy class="org.apache.lucene.index.TieredMergePolicy">
- <int name="maxMergeAtOnce">10</int>
- <int name="segmentsPerTier">10</int>
- </mergePolicy>
- -->
-
- <!-- Merge Factor
- The merge factor controls how many segments will get merged at
a time.
- For TieredMergePolicy, mergeFactor is a convenience parameter
which
- will set both MaxMergeAtOnce and SegmentsPerTier at once.
- For LogByteSizeMergePolicy, mergeFactor decides how many new
segments
- will be allowed before they are merged into one.
- Default is 10 for both merge policies.
- -->
- <!--
- <mergeFactor>10</mergeFactor>
- -->
-
- <!-- Expert: Merge Scheduler
- The Merge Scheduler in Lucene controls how merges are
- performed. The ConcurrentMergeScheduler (Lucene 2.3 default)
- can perform merges in the background using separate threads.
- The SerialMergeScheduler (Lucene 2.2 default) does not.
- -->
- <!--
- <mergeScheduler
class="org.apache.lucene.index.ConcurrentMergeScheduler"/>
- -->
-
- <!-- LockFactory
-
- This option specifies which Lucene LockFactory implementation
- to use.
-
- single = SingleInstanceLockFactory - suggested for a
- read-only index or when there is no possibility of
- another process trying to modify the index.
- native = NativeFSLockFactory - uses OS native file locking.
- Do not use when multiple solr webapps in the same
- JVM are attempting to share a single index.
- simple = SimpleFSLockFactory - uses a plain file for locking
-
- Defaults: 'native' is default for Solr3.6 and later, otherwise
- 'simple' is the default
-
- More details on the nuances of each LockFactory...
-
http://wiki.apache.org/lucene-java/AvailableLockFactories
- -->
- <!-- <lockType>native</lockType> -->
-
- <!-- Unlock On Startup
-
- If true, unlock any held write or commit locks on startup.
- This defeats the locking mechanism that allows multiple
- processes to safely access a lucene index, and should be used
- with care. Default is "false".
-
- This is not needed if lock type is 'none' or 'single'
- -->
- <!--
- <unlockOnStartup>false</unlockOnStartup>
- -->
-
- <!-- Expert: Controls how often Lucene loads terms into memory
- Default is 128 and is likely good for most everyone.
- -->
- <!-- <termIndexInterval>128</termIndexInterval> -->
-
- <!-- If true, IndexReaders will be reopened (often more efficient)
- instead of closed and then opened. Default: true
- -->
- <!--
- <reopenReaders>true</reopenReaders>
- -->
-
- <!-- Commit Deletion Policy
-
- Custom deletion policies can be specified here. The class must
- implement org.apache.lucene.index.IndexDeletionPolicy.
-
-
http://lucene.apache.org/java/3_5_0/api/core/org/apache/lucene/index/IndexDeletionPolicy.html
-
- The default Solr IndexDeletionPolicy implementation supports
- deleting index commit points on number of commits, age of
- commit point and optimized status.
-
- The latest commit point should always be preserved regardless
- of the criteria.
- -->
- <!--
-<deletionPolicy class="solr.SolrDeletionPolicy">
- -->
- <!-- The number of commit points to be kept -->
- <!-- <str name="maxCommitsToKeep">1</str> -->
- <!-- The number of optimized commit points to be kept -->
- <!-- <str name="maxOptimizedCommitsToKeep">0</str> -->
- <!--
- Delete all commit points once they have reached the given age.
- Supports DateMathParser syntax e.g.
- -->
- <!--
- <str name="maxCommitAge">30MINUTES</str>
- <str name="maxCommitAge">1DAY</str>
- -->
- <!--
- </deletionPolicy>
- -->
-
- <!-- Lucene Infostream
-
- To aid in advanced debugging, Lucene provides an "InfoStream"
- of detailed information when indexing.
-
- Setting The value to true will instruct the underlying Lucene
- IndexWriter to write its debugging info the specified file
- -->
- <!-- <infoStream file="INFOSTREAM.txt">false</infoStream> -->
- </indexConfig>
-
-
- <!-- JMX
-
- This example enables JMX if and only if an existing MBeanServer
- is found, use this if you want to configure JMX through JVM
- parameters. Remove this to disable exposing Solr configuration
- and statistics to JMX.
-
- For more details see
http://wiki.apache.org/solr/SolrJmx
- -->
- <jmx />
- <!-- If you want to connect to a particular server, specify the
- agentId
- -->
- <!-- <jmx agentId="myAgent" /> -->
- <!-- If you want to start a new MBeanServer, specify the serviceUrl -->
- <!-- <jmx
serviceUrl="service:jmx:rmi:///jndi/rmi://localhost:9999/solr"/>
- -->
-
- <!-- The default high-performance update handler -->
- <updateHandler class="solr.DirectUpdateHandler2">
-
- <!-- AutoCommit
-
- Perform a <commit/> automatically under certain conditions.
- Instead of enabling autoCommit, consider using "commitWithin"
- when adding documents.
-
-
http://wiki.apache.org/solr/UpdateXmlMessages
-
- maxDocs - Maximum number of documents to add since the last
- commit before automatically triggering a new commit.
-
- maxTime - Maximum amount of time that is allowed to pass
- since a document was added before automaticly
- triggering a new commit.
- -->
- <!--
- <autoCommit>
- <maxDocs>10000</maxDocs>
- <maxTime>1000</maxTime>
- </autoCommit>
- -->
-
- <!-- Update Related Event Listeners
-
- Various IndexWriter related events can trigger Listeners to
- take actions.
-
- postCommit - fired after every commit or optimize command
- postOptimize - fired after every optimize command
- -->
- <!-- The RunExecutableListener executes an external command from a
- hook such as postCommit or postOptimize.
-
- exe - the name of the executable to run
- dir - dir to use as the current working directory. (default=".")
- wait - the calling thread waits until the executable returns.
- (default="true")
- args - the arguments to pass to the program. (default is none)
- env - environment variables to set. (default is none)
- -->
- <!-- This example shows how RunExecutableListener could be used
- with the script based replication...
-
http://wiki.apache.org/solr/CollectionDistribution
- -->
- <!--
- <listener event="postCommit" class="solr.RunExecutableListener">
- <str name="exe">solr/bin/snapshooter</str>
- <str name="dir">.</str>
- <bool name="wait">true</bool>
- <arr name="args"> <str>arg1</str> <str>arg2</str> </arr>
- <arr name="env"> <str>MYVAR=val1</str> </arr>
- </listener>
- -->
- </updateHandler>
-
- <!-- IndexReaderFactory
-
- Use the following format to specify a custom IndexReaderFactory,
- which allows for alternate IndexReader implementations.
-
- ** Experimental Feature **
-
- Please note - Using a custom IndexReaderFactory may prevent
- certain other features from working. The API to
- IndexReaderFactory may change without warning or may even be
- removed from future releases if the problems cannot be
- resolved.
-
-
- ** Features that may not work with custom IndexReaderFactory **
-
- The ReplicationHandler assumes a disk-resident index. Using a
- custom IndexReader implementation may cause incompatibility
- with ReplicationHandler and may cause replication to not work
- correctly. See SOLR-1366 for details.
-
- -->
- <!--
- <indexReaderFactory name="IndexReaderFactory" class="package.class">
- <str name="someArg">Some Value</str>
- </indexReaderFactory >
- -->
- <!-- By explicitly declaring the Factory, the termIndexDivisor can
- be specified.
- -->
- <!--
- <indexReaderFactory name="IndexReaderFactory"
- class="solr.StandardIndexReaderFactory">
- <int name="setTermIndexDivisor">12</int>
- </indexReaderFactory >
- -->
-
- <!--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Query section - these settings control query time things like caches
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-->
- <query>
- <!-- Max Boolean Clauses
-
- Maximum number of clauses in each BooleanQuery, an exception
- is thrown if exceeded.
-
- ** WARNING **
-
- This option actually modifies a global Lucene property that
- will affect all SolrCores. If multiple solrconfig.xml files
- disagree on this property, the value at any given moment will
- be based on the last SolrCore to be initialized.
-
- -->
- <maxBooleanClauses>1024</maxBooleanClauses>
-
-
- <!-- Solr Internal Query Caches
-
- There are two implementations of cache available for Solr,
- LRUCache, based on a synchronized LinkedHashMap, and
- FastLRUCache, based on a ConcurrentHashMap.
-
- FastLRUCache has faster gets and slower puts in single
- threaded operation and thus is generally faster than LRUCache
- when the hit ratio of the cache is high (> 75%), and may be
- faster under other scenarios on multi-cpu systems.
- -->
-
- <!-- Filter Cache
-
- Cache used by SolrIndexSearcher for filters (DocSets),
- unordered sets of *all* documents that match a query. When a
- new searcher is opened, its caches may be prepopulated or
- "autowarmed" using data from caches in the old searcher.
- autowarmCount is the number of items to prepopulate. For
- LRUCache, the autowarmed items will be the most recently
- accessed items.
-
- Parameters:
- class - the SolrCache implementation LRUCache or
- (LRUCache or FastLRUCache)
- size - the maximum number of entries in the cache
- initialSize - the initial capacity (number of entries) of
- the cache. (see java.util.HashMap)
- autowarmCount - the number of entries to prepopulate from
- and old cache.
- -->
- <filterCache class="solr.FastLRUCache"
- size="512"
- initialSize="512"
- autowarmCount="0"/>
-
- <!-- Query Result Cache
-
- Caches results of searches - ordered lists of document ids
- (DocList) based on a query, a sort, and the range of documents
- requested.
- -->
- <queryResultCache class="solr.LRUCache"
- size="512"
- initialSize="512"
- autowarmCount="0"/>
-
- <!-- Document Cache
-
- Caches Lucene Document objects (the stored fields for each
- document). Since Lucene internal document ids are transient,
- this cache will not be autowarmed.
- -->
- <documentCache class="solr.LRUCache"
- size="512"
- initialSize="512"
- autowarmCount="0"/>
-
- <!-- Field Value Cache
-
- Cache used to hold field values that are quickly accessible
- by document id. The fieldValueCache is created by default
- even if not configured here.
- -->
- <!--
- <fieldValueCache class="solr.FastLRUCache"
- size="512"
- autowarmCount="128"
- showItems="32" />
- -->
-
- <!-- Custom Cache
-
- Example of a generic cache. These caches may be accessed by
- name through SolrIndexSearcher.getCache(),cacheLookup(), and
- cacheInsert(). The purpose is to enable easy caching of
- user/application level data. The regenerator argument should
- be specified as an implementation of solr.CacheRegenerator
- if autowarming is desired.
- -->
- <!--
- <cache name="myUserCache"
- class="solr.LRUCache"
- size="4096"
- initialSize="1024"
- autowarmCount="1024"
- regenerator="com.mycompany.MyRegenerator"
- />
- -->
-
-
- <!-- Lazy Field Loading
-
- If true, stored fields that are not requested will be loaded
- lazily. This can result in a significant speed improvement
- if the usual case is to not load all stored fields,
- especially if the skipped fields are large compressed text
- fields.
- -->
- <enableLazyFieldLoading>true</enableLazyFieldLoading>
-
- <!-- Use Filter For Sorted Query
-
- A possible optimization that attempts to use a filter to
- satisfy a search. If the requested sort does not include
- score, then the filterCache will be checked for a filter
- matching the query. If found, the filter will be used as the
- source of document ids, and then the sort will be applied to
- that.
-
- For most situations, this will not be useful unless you
- frequently get the same search repeatedly with different sort
- options, and none of them ever use "score"
- -->
- <!--
- <useFilterForSortedQuery>true</useFilterForSortedQuery>
- -->
-
- <!-- Result Window Size
-
- An optimization for use with the queryResultCache. When a search
- is requested, a superset of the requested number of document ids
- are collected. For example, if a search for a particular query
- requests matching documents 10 through 19, and queryWindowSize
- is 50, then documents 0 through 49 will be collected and cached.
- Any further requests in that range can be satisfied via the cache.
- -->
- <queryResultWindowSize>20</queryResultWindowSize>
-
- <!-- Maximum number of documents to cache for any entry in the
- queryResultCache.
- -->
- <queryResultMaxDocsCached>200</queryResultMaxDocsCached>
-
- <!-- Query Related Event Listeners
-
- Various IndexSearcher related events can trigger Listeners to
- take actions.
-
- newSearcher - fired whenever a new searcher is being prepared
- and there is a current searcher handling requests (aka
- registered). It can be used to prime certain caches to
- prevent long request times for certain requests.
-
- firstSearcher - fired whenever a new searcher is being
- prepared but there is no current registered searcher to handle
- requests or to gain autowarming data from.
-
-
- -->
- <!-- QuerySenderListener takes an array of NamedList and executes a
- local query request for each NamedList in sequence.
- -->
- <listener event="newSearcher" class="solr.QuerySenderListener">
- <arr name="queries">
- <!--
- <lst><str name="q">solr</str><str name="sort">price
asc</str></lst>
- <lst><str name="q">rocks</str><str name="sort">weight
asc</str></lst>
- -->
- </arr>
- </listener>
- <listener event="firstSearcher" class="solr.QuerySenderListener">
- <arr name="queries">
- <lst>
- <str name="q">static firstSearcher warming in
solrconfig.xml</str>
- </lst>
- </arr>
- </listener>
-
- <!-- Use Cold Searcher
-
- If a search request comes in and there is no current
- registered searcher, then immediately register the still
- warming searcher and use it. If "false" then all requests
- will block until the first searcher is done warming.
- -->
- <useColdSearcher>false</useColdSearcher>
-
- <!-- Max Warming Searchers
-
- Maximum number of searchers that may be warming in the
- background concurrently. An error is returned if this limit
- is exceeded.
-
- Recommend values of 1-2 for read-only slaves, higher for
- masters w/o cache warming.
- -->
- <maxWarmingSearchers>2</maxWarmingSearchers>
-
- </query>
-
-
- <!-- Request Dispatcher
-
- This section contains instructions for how the SolrDispatchFilter
- should behave when processing requests for this SolrCore.
-
- If you wish to regain use of /select?qt=... style request handler
- dispatching, then first add handleSelect="true" to
- <requestDispatcher>. Then change the name of the request handler
- named "/select" to something else without a leading "/", such as
- simply "select" and add default="true" to it.
- -->
- <requestDispatcher>
- <!-- Request Parsing
-
- These settings indicate how Solr Requests may be parsed, and
- what restrictions may be placed on the ContentStreams from
- those requests
-
- enableRemoteStreaming - enables use of the stream.file
- and stream.url parameters for specifying remote streams.
- SearchRequestHandler won't fetch it, but some others do.
-
- multipartUploadLimitInKB - specifies the max size of
- Multipart File Uploads that Solr will allow in a Request.
-
- *** WARNING ***
- The settings below authorize Solr to fetch remote files, You
- should make sure your system has some authentication before
- using enableRemoteStreaming="true"
-
- -->
- <requestParsers enableRemoteStreaming="true"
- multipartUploadLimitInKB="2048000" />
-
- <!-- HTTP Caching
-
- Set HTTP caching related parameters (for proxy caches and
clients).
-
- The options below instruct Solr not to output any HTTP Caching
- related headers
- -->
- <httpCaching never304="true" />
- <!-- If you include a <cacheControl> directive, it will be used to
- generate a Cache-Control header (as well as an Expires header
- if the value contains "max-age=")
-
- By default, no Cache-Control header is generated.
-
- You can use the <cacheControl> option even if you have set
- never304="true"
- -->
- <!--
- <httpCaching never304="true" >
- <cacheControl>max-age=30, public</cacheControl>
- </httpCaching>
- -->
- <!-- To enable Solr to respond with automatically generated HTTP
- Caching headers, and to response to Cache Validation requests
- correctly, set the value of never304="false"
-
- This will cause Solr to generate Last-Modified and ETag
- headers based on the properties of the Index.
-
- The following options can also be specified to affect the
- values of these headers...
-
- lastModFrom - the default value is "openTime" which means the
- Last-Modified value (and validation against If-Modified-Since
- requests) will all be relative to when the current Searcher
- was opened. You can change it to lastModFrom="dirLastMod" if
- you want the value to exactly correspond to when the physical
- index was last modified.
-
- etagSeed="..." is an option you can change to force the ETag
- header (and validation against If-None-Match requests) to be
- different even if the index has not changed (ie: when making
- significant changes to your config file)
-
- (lastModifiedFrom and etagSeed are both ignored if you use
- the never304="true" option)
- -->
- <!--
- <httpCaching lastModifiedFrom="openTime"
- etagSeed="Solr">
- <cacheControl>max-age=30, public</cacheControl>
- </httpCaching>
- -->
- </requestDispatcher>
-
- <!-- Request Handlers
-
-
http://wiki.apache.org/solr/SolrRequestHandler
-
- Incoming queries will be dispatched to the correct handler
- based on the matching request path piece.
-
- If a Request Handler is declared with startup="lazy", then it will
- not be initialized until the first request that uses it.
-
- -->
- <!-- SearchHandler
-
-
http://wiki.apache.org/solr/SearchHandler
-
- For processing Search Queries, the primary Request Handler
- provided with Solr is "SearchHandler" It delegates to a sequent
- of SearchComponents (see below) and supports distributed
- queries across multiple shards
- -->
- <requestHandler name="/select" class="solr.SearchHandler"
default="true">
- <!-- default values for query parameters can be specified, these
- will be overridden by parameters in the request
- -->
- <lst name="defaults">
- <str name="echoParams">explicit</str>
- <int name="rows">10</int>
- <str name="spellcheck.onlyMorePopular">false</str>
- <str name="spellcheck.extendedResults">false</str>
- <str name="spellcheck.count">10</str>
- <str name="spellcheck.collate">true</str>
- <str name="spellcheck.maxCollationTries">100</str>
- </lst>
- <!-- In addition to defaults, "appends" params can be specified
- to identify values which should be appended to the list of
- multi-val params from the query (or the existing "defaults").
- -->
- <!-- In this example, the param "fq=instock:true" would be
appended to
- any query time fq params the user may specify, as a mechanism
for
- partitioning the index, independent of any user selected
filtering
- that may also be desired (perhaps as a result of faceted
searching).
-
- NOTE: there is *absolutely* nothing a client can do to prevent
these
- "appends" values from being used, so don't use this mechanism
- unless you are sure you always want it.
- -->
- <!--
- <lst name="appends">
- <str name="fq">inStock:true</str>
- </lst>
- -->
- <!-- "invariants" are a way of letting the Solr maintainer lock
down
- the options available to Solr clients. Any params values
- specified here are used regardless of what values may be
specified
- in either the query, the "defaults", or the "appends" params.
-
- In this example, the facet.field and facet.query params would
- be fixed, limiting the facets clients can use. Faceting is
- not turned on by default - but if the client does specify
- facet=true in the request, these are the only facets they
- will be able to see counts for; regardless of what other
- facet.field or facet.query params they may specify.
-
- NOTE: there is *absolutely* nothing a client can do to prevent
these
- "invariants" values from being used, so don't use this mechanism
- unless you are sure you always want it.
- -->
- <!--
- <lst name="invariants">
- <str name="facet.field">cat</str>
- <str name="facet.field">manu_exact</str>
- <str name="facet.query">price:[* TO 500]</str>
- <str name="facet.query">price:[500 TO *]</str>
- </lst>
- -->
- <!-- If the default list of SearchComponents is not desired, that
- list can either be overridden completely, or components can be
- prepended or appended to the default list. (see below)
- -->
- <!--
- <arr name="components">
- <str>nameOfCustomComponent1</str>
- <str>nameOfCustomComponent2</str>
- </arr>
- -->
- <arr name="last-components">
- <str>spellcheck</str>
- </arr>
- </requestHandler>
-
- <!-- A Robust Example
-
- This example SearchHandler declaration shows off usage of the
- SearchHandler with many defaults declared
-
- Note that multiple instances of the same Request Handler
- (SearchHandler) can be registered multiple times with different
- names (and different init parameters)
- -->
- <requestHandler name="/browse" class="solr.SearchHandler">
- <lst name="defaults">
- <str name="echoParams">explicit</str>
-
- <!-- VelocityResponseWriter settings -->
- <str name="wt">velocity</str>
-
- <str name="v.template">browse</str>
- <str name="v.layout">layout</str>
- <str name="title">Solritas</str>
-
- <str name="df">text</str>
- <str name="defType">edismax</str>
- <str name="q.alt">*:*</str>
- <str name="rows">10</str>
- <str name="fl">*,score</str>
- <str name="mlt.qf">
- text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
- </str>
- <str name="mlt.fl">text,features,name,sku,id,manu,cat</str>
- <int name="mlt.count">3</int>
-
- <str name="qf">
- text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
- </str>
-
- <str name="facet">on</str>
- <str name="facet.field">cat</str>
- <str name="facet.field">manu_exact</str>
- <str name="facet.query">ipod</str>
- <str name="facet.query">GB</str>
- <str name="facet.mincount">1</str>
- <str name="facet.pivot">cat,inStock</str>
- <str name="facet.range.other">after</str>
- <str name="facet.range">price</str>
- <int name="f.price.facet.range.start">0</int>
- <int name="f.price.facet.range.end">600</int>
- <int name="f.price.facet.range.gap">50</int>
- <str name="f.price.facet.range.other">after</str>
- <str name="facet.range">popularity</str>
- <int name="f.popularity.facet.range.start">0</int>
- <int name="f.popularity.facet.range.end">10</int>
- <int name="f.popularity.facet.range.gap">3</int>
- <str name="facet.range">manufacturedate_dt</str>
- <str
name="f.manufacturedate_dt.facet.range.start">NOW/YEAR-10YEARS</str>
- <str name="f.manufacturedate_dt.facet.range.end">NOW</str>
- <str name="f.manufacturedate_dt.facet.range.gap">+1YEAR</str>
- <str name="f.manufacturedate_dt.facet.range.other">before</str>
- <str name="f.manufacturedate_dt.facet.range.other">after</str>
-
-
- <!-- Highlighting defaults -->
- <str name="hl">on</str>
- <str name="hl.fl">text features name</str>
- <str name="f.name.hl.fragsize">0</str>
- <str name="f.name.hl.alternateField">name</str>
- </lst>
- <arr name="last-components">
- <str>spellcheck</str>
- </arr>
- <!--
- <str name="url-scheme">httpx</str>
- -->
- </requestHandler>
-
- <!-- XML Update Request Handler.
-
-
http://wiki.apache.org/solr/UpdateXmlMessages
-
- The canonical Request Handler for Modifying the Index through
- commands specified using XML.
-
- Note: Since solr1.1 requestHandlers requires a valid content
- type header if posted in the body. For example, curl now
- requires: -H 'Content-type:text/xml; charset=utf-8'
- -->
- <requestHandler name="/update"
- class="solr.XmlUpdateRequestHandler">
- <!-- See below for information on defining
- updateRequestProcessorChains that can be used by name
- on each Update Request
- -->
- <!--
- <lst name="defaults">
- <str name="update.chain">dedupe</str>
- </lst>
- -->
- </requestHandler>
- <!-- Binary Update Request Handler
-
http://wiki.apache.org/solr/javabin
- -->
- <requestHandler name="/update/javabin"
- class="solr.BinaryUpdateRequestHandler" />
-
- <!-- CSV Update Request Handler
-
http://wiki.apache.org/solr/UpdateCSV
- -->
- <requestHandler name="/update/csv"
- class="solr.CSVRequestHandler"
- startup="lazy" />
-
- <!-- JSON Update Request Handler
-
http://wiki.apache.org/solr/UpdateJSON
- -->
- <requestHandler name="/update/json"
- class="solr.JsonUpdateRequestHandler"
- startup="lazy" />
-
- <!-- Solr Cell Update Request Handler
-
-
http://wiki.apache.org/solr/ExtractingRequestHandler
-
- -->
- <requestHandler name="/update/extract"
- startup="lazy"
- class="solr.extraction.ExtractingRequestHandler" >
- <lst name="defaults">
- <!-- All the main content goes into "text"... if you need to return
- the extracted text or do highlighting, use a stored field. -->
- <str name="fmap.content">text</str>
- <str name="lowernames">true</str>
- <str name="uprefix">ignored_</str>
-
- <!-- capture link hrefs but ignore div attributes -->
- <str name="captureAttr">true</str>
- <str name="fmap.a">links</str>
- <str name="fmap.div">ignored_</str>
- </lst>
- </requestHandler>
-
- <!-- XSLT Update Request Handler
- Transforms incoming XML with stylesheet identified by tr=
- -->
- <requestHandler name="/update/xslt"
- startup="lazy"
- class="solr.XsltUpdateRequestHandler"/>
-
- <!-- Field Analysis Request Handler
-
- RequestHandler that provides much the same functionality as
- analysis.jsp. Provides the ability to specify multiple field
- types and field names in the same request and outputs
- index-time and query-time analysis for each of them.
-
- Request parameters are:
- analysis.fieldname - field name whose analyzers are to be used
-
- analysis.fieldtype - field type whose analyzers are to be used
- analysis.fieldvalue - text for index-time analysis
- q (or analysis.q) - text for query time analysis
- analysis.showmatch (true|false) - When set to true and when
- query analysis is performed, the produced tokens of the
- field value analysis will be marked as "matched" for every
- token that is produces by the query analysis
- -->
- <requestHandler name="/analysis/field"
- startup="lazy"
- class="solr.FieldAnalysisRequestHandler" />
-
-
- <!-- Document Analysis Handler
-
-
http://wiki.apache.org/solr/AnalysisRequestHandler
-
- An analysis handler that provides a breakdown of the analysis
- process of provided docuemnts. This handler expects a (single)
- content stream with the following format:
-
- <docs>
- <doc>
- <field name="id">1</field>
- <field name="name">The Name</field>
- <field name="text">The Text Value</field>
- </doc>
- <doc>...</doc>
- <doc>...</doc>
- ...
- </docs>
-
- Note: Each document must contain a field which serves as the
- unique key. This key is used in the returned response to associate
- an analysis breakdown to the analyzed document.
-
- Like the FieldAnalysisRequestHandler, this handler also supports
- query analysis by sending either an "analysis.query" or "q"
- request parameter that holds the query text to be analyzed. It
- also supports the "analysis.showmatch" parameter which when set to
- true, all field tokens that match the query tokens will be marked
- as a "match".
- -->
- <requestHandler name="/analysis/document"
- class="solr.DocumentAnalysisRequestHandler"
- startup="lazy" />
-
- <!-- Admin Handlers
-
- Admin Handlers - This will register all the standard admin
***The diff for this file has been truncated for email.***
=======================================
--- /branches/kateglox/.idea/workspace.xml Sat Jul 21 04:14:51 2012
+++ /branches/kateglox/.idea/workspace.xml Fri Jul 27 05:44:43 2012
@@ -2,42 +2,17 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" readonly="true"
id="7fad7703-02e1-4f4f-8603-084b2e534c9a" name="Default" comment="">
- <change type="NEW" beforePath=""
afterPath="$PROJECT_DIR$/vagrant/puppet/modules/kateglo/files" />
- <change type="NEW" beforePath=""
afterPath="$PROJECT_DIR$/vagrant/puppet/modules/mysql/files" />
- <change type="NEW" beforePath=""
afterPath="$PROJECT_DIR$/vagrant/puppet/modules/kateglo/files/kateglox.sql"
/>
- <change type="NEW" beforePath=""
afterPath="$PROJECT_DIR$/vagrant/puppet/modules/mysql/files/my.cnf" />
- <change type="DELETED"
beforePath="C:\Users\Purnama\StormWorkspace\kateglo\build\solr\mapping-ISOLatin1Accent.txt"
afterPath="" />
- <change type="DELETED"
beforePath="C:\Users\Purnama\StormWorkspace\kateglo\build\solr\scripts.conf"
afterPath="" />
- <change type="DELETED"
beforePath="C:\Users\Purnama\StormWorkspace\kateglo\library\Stubbles\bootstrap.php"
afterPath="" />
- <change type="DELETED"
beforePath="C:\Users\Purnama\StormWorkspace\kateglo\build\solr\dataimport.properties"
afterPath="" />
- <change type="DELETED"
beforePath="C:\Users\Purnama\StormWorkspace\kateglo\build\solr"
afterPath="" />
- <change type="DELETED"
beforePath="C:\Users\Purnama\StormWorkspace\kateglo\library\Stubbles"
afterPath="" />
- <change type="MOVED"
beforePath="C:\Users\Purnama\StormWorkspace\kateglo\build\solr\data-config.xml"
afterPath="$PROJECT_DIR$/vagrant/puppet/modules/kateglo/files/data-config.xml"
/>
- <change type="MOVED"
beforePath="C:\Users\Purnama\StormWorkspace\kateglo\build\solr\elevate.xml"
afterPath="$PROJECT_DIR$/vagrant/puppet/modules/kateglo/files/elevate.xml"
/>
- <change type="MOVED"
beforePath="C:\Users\Purnama\StormWorkspace\kateglo\build\solr\protwords.txt"
afterPath="$PROJECT_DIR$/vagrant/puppet/modules/kateglo/files/protwords.txt"
/>
- <change type="MOVED"
beforePath="C:\Users\Purnama\StormWorkspace\kateglo\build\solr\schema.xml"
afterPath="$PROJECT_DIR$/vagrant/puppet/modules/kateglo/files/schema.xml" />
- <change type="MOVED"
beforePath="C:\Users\Purnama\StormWorkspace\kateglo\build\solr\solrconfig.xml"
afterPath="$PROJECT_DIR$/vagrant/puppet/modules/kateglo/files/solrconfig.xml"
/>
- <change type="MOVED"
beforePath="C:\Users\Purnama\StormWorkspace\kateglo\build\solr\spellings.txt"
afterPath="$PROJECT_DIR$/vagrant/puppet/modules/kateglo/files/spellings.txt"
/>
- <change type="MOVED"
beforePath="C:\Users\Purnama\StormWorkspace\kateglo\build\solr\stopwords.txt"
afterPath="$PROJECT_DIR$/vagrant/puppet/modules/kateglo/files/stopwords.txt"
/>
- <change type="MOVED"
beforePath="C:\Users\Purnama\StormWorkspace\kateglo\build\solr\synonyms.txt"
afterPath="$PROJECT_DIR$/vagrant/puppet/modules/kateglo/files/synonyms.txt"
/>
- <change type="MODIFICATION"
beforePath="$PROJECT_DIR$/application/configs/application.ini"
afterPath="$PROJECT_DIR$/application/configs/application.ini" />
+ <change type="NEW" beforePath=""
afterPath="$PROJECT_DIR$/vagrant/puppet/modules/kateglo/templates" />
+ <change type="MOVED"
beforePath="C:\Users\Purnama\StormWorkspace\kateglo\vagrant\puppet\modules\kateglo\files\data-config.xml"
afterPath="$PROJECT_DIR$/vagrant/puppet/modules/kateglo/templates/data-config.xml.erb"
/>
+ <change type="MOVED"
beforePath="C:\Users\Purnama\StormWorkspace\kateglo\vagrant\puppet\modules\kateglo\files\solrconfig.xml"
afterPath="$PROJECT_DIR$/vagrant/puppet/modules/kateglo/templates/solrconfig.xml.erb"
/>
<change type="MODIFICATION"
beforePath="$PROJECT_DIR$/.idea/workspace.xml"
afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
- <change type="MODIFICATION"
beforePath="$PROJECT_DIR$/application/configs/Binder.php"
afterPath="$PROJECT_DIR$/application/configs/Binder.php" />
- <change type="MODIFICATION"
beforePath="$PROJECT_DIR$/application/providers/Config.php"
afterPath="$PROJECT_DIR$/application/providers/Config.php" />
- <change type="MODIFICATION"
beforePath="$PROJECT_DIR$/application/providers/Connection.php"
afterPath="$PROJECT_DIR$/application/providers/Connection.php" />
- <change type="MODIFICATION"
beforePath="$PROJECT_DIR$/application/providers/EntityManager.php"
afterPath="$PROJECT_DIR$/application/providers/EntityManager.php" />
- <change type="MODIFICATION"
beforePath="$PROJECT_DIR$/application/providers/Log.php"
afterPath="$PROJECT_DIR$/application/providers/Log.php" />
- <change type="MODIFICATION"
beforePath="$PROJECT_DIR$/application/providers/Solr.php"
afterPath="$PROJECT_DIR$/application/providers/Solr.php" />
- <change type="MODIFICATION"
beforePath="$PROJECT_DIR$/application/utilities/Injector.php"
afterPath="$PROJECT_DIR$/application/utilities/Injector.php" />
- <change type="MODIFICATION"
beforePath="$PROJECT_DIR$/application/utilities/REST.php"
afterPath="$PROJECT_DIR$/application/utilities/REST.php" />
- <change type="MODIFICATION"
beforePath="$PROJECT_DIR$/application/utilities/interfaces/REST.php"
afterPath="$PROJECT_DIR$/application/utilities/interfaces/REST.php" />
- <change type="MODIFICATION"
beforePath="$PROJECT_DIR$/library/Zend/Controller/Dispatcher/Stubbles.php"
afterPath="$PROJECT_DIR$/library/Zend/Controller/Dispatcher/Stubbles.php" />
- <change type="MODIFICATION"
beforePath="$PROJECT_DIR$/public/index.php"
afterPath="$PROJECT_DIR$/public/index.php" />
+ <change type="MODIFICATION"
beforePath="$PROJECT_DIR$/vagrant/puppet/manifests/main.pp"
afterPath="$PROJECT_DIR$/vagrant/puppet/manifests/main.pp" />
<change type="MODIFICATION"
beforePath="$PROJECT_DIR$/vagrant/puppet/modules/bootstrap/manifests/init.pp"
afterPath="$PROJECT_DIR$/vagrant/puppet/modules/bootstrap/manifests/init.pp"
/>
+ <change type="MODIFICATION"
beforePath="$PROJECT_DIR$/vagrant/puppet/modules/diverse/manifests/init.pp"
afterPath="$PROJECT_DIR$/vagrant/puppet/modules/diverse/manifests/init.pp"
/>
<change type="MODIFICATION"
beforePath="$PROJECT_DIR$/vagrant/puppet/modules/kateglo/manifests/init.pp"
afterPath="$PROJECT_DIR$/vagrant/puppet/modules/kateglo/manifests/init.pp"
/>
<change type="MODIFICATION"
beforePath="$PROJECT_DIR$/vagrant/puppet/modules/mysql/manifests/init.pp"
afterPath="$PROJECT_DIR$/vagrant/puppet/modules/mysql/manifests/init.pp" />
- <change type="MODIFICATION"
beforePath="$PROJECT_DIR$/vagrant/puppet/modules/php/manifests/init.pp"
afterPath="$PROJECT_DIR$/vagrant/puppet/modules/php/manifests/init.pp" />
<change type="MODIFICATION"
beforePath="$PROJECT_DIR$/vagrant/puppet/modules/solr/manifests/init.pp"
afterPath="$PROJECT_DIR$/vagrant/puppet/modules/solr/manifests/init.pp" />
+ <change type="MODIFICATION"
beforePath="$PROJECT_DIR$/vagrant/puppet/modules/solr/templates/default.jetty.erb"
afterPath="$PROJECT_DIR$/vagrant/puppet/modules/solr/templates/default.jetty.erb"
/>
</list>
<ignored path="kateglo.iws" />
<ignored path=".idea/workspace.xml" />
@@ -59,46 +34,73 @@
</component>
<component name="FileEditorManager">
<leaf>
- <file leaf-file-name="init.pp" pinned="false" current="true"
current-in-tab="true">
+ <file leaf-file-name="init.pp" pinned="false" current="false"
current-in-tab="false">
<entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/kateglo/manifests/init.pp">
<provider selected="true" editor-type-id="text-editor">
- <state line="49" column="26" selection-start="1429"
selection-end="1429" vertical-scroll-proportion="0.03057554">
+ <state line="68" column="65" selection-start="2293"
selection-end="2293" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
</file>
- <file leaf-file-name="init.pp" pinned="false" current="false"
current-in-tab="false">
- <entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/php/manifests/init.pp">
+ <file leaf-file-name="my.cnf" pinned="false" current="false"
current-in-tab="false">
+ <entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/mysql/files/my.cnf">
<provider selected="true" editor-type-id="text-editor">
- <state line="42" column="4" selection-start="1209"
selection-end="1209" vertical-scroll-proportion="0.0">
+ <state line="48" column="125" selection-start="1430"
selection-end="1430" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
</file>
- <file leaf-file-name="init.pp" pinned="false" current="false"
current-in-tab="false">
- <entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/solr/manifests/init.pp">
+ <file leaf-file-name="default.jetty.erb" pinned="false"
current="false" current-in-tab="false">
+ <entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/solr/templates/default.jetty.erb">
<provider selected="true" editor-type-id="text-editor">
- <state line="114" column="30" selection-start="3865"
selection-end="3866" vertical-scroll-proportion="0.0">
+ <state line="27" column="85" selection-start="803"
selection-end="803" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
</file>
+ <file leaf-file-name="site.erb" pinned="false" current="false"
current-in-tab="false">
+ <entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/apache/templates/site.erb">
+ <provider selected="true" editor-type-id="text-editor">
+ <state line="3" column="17" selection-start="66"
selection-end="85" vertical-scroll-proportion="0.0">
+ <folding />
+ </state>
+ </provider>
+ </entry>
+ </file>
<file leaf-file-name="init.pp" pinned="false" current="false"
current-in-tab="false">
<entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/bootstrap/manifests/init.pp">
<provider selected="true" editor-type-id="text-editor">
- <state line="9" column="21" selection-start="307"
selection-end="307" vertical-scroll-proportion="0.0">
+ <state line="13" column="46" selection-start="393"
selection-end="393" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
</file>
- <file leaf-file-name="main.pp" pinned="false" current="false"
current-in-tab="false">
+ <file leaf-file-name="init.pp" pinned="false" current="false"
current-in-tab="false">
+ <entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/diverse/manifests/init.pp">
+ <provider selected="true" editor-type-id="text-editor">
+ <state line="8" column="0" selection-start="261"
selection-end="261" vertical-scroll-proportion="0.0">
+ <folding />
+ </state>
+ </provider>
+ </entry>
+ </file>
+ <file leaf-file-name="solrconfig.xml.erb" pinned="false"
current="false" current-in-tab="false">
+ <entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/kateglo/templates/solrconfig.xml.erb">
+ <provider selected="true" editor-type-id="text-editor">
+ <state line="1111" column="39" selection-start="43089"
selection-end="43089" vertical-scroll-proportion="0.0">
+ <folding />
+ </state>
+ </provider>
+ </entry>
+ </file>
+ <file leaf-file-name="main.pp" pinned="false" current="true"
current-in-tab="true">
<entry
file="file://$PROJECT_DIR$/vagrant/puppet/manifests/main.pp">
<provider selected="true" editor-type-id="text-editor">
- <state line="13" column="4" selection-start="253"
selection-end="253" vertical-scroll-proportion="0.0">
+ <state line="6" column="22" selection-start="161"
selection-end="161" vertical-scroll-proportion="0.17926186">
<folding />
</state>
</provider>
@@ -107,12 +109,21 @@
<file leaf-file-name="init.pp" pinned="false" current="false"
current-in-tab="false">
<entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/mysql/manifests/init.pp">
<provider selected="true" editor-type-id="text-editor">
- <state line="12" column="107" selection-start="255"
selection-end="255" vertical-scroll-proportion="0.0">
+ <state line="33" column="61" selection-start="840"
selection-end="840" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
</file>
+ <file leaf-file-name="data-config.xml.erb" pinned="false"
current="false" current-in-tab="false">
+ <entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/kateglo/templates/data-config.xml.erb">
+ <provider selected="true" editor-type-id="text-editor">
+ <state line="2" column="47" selection-start="192"
selection-end="192" vertical-scroll-proportion="0.0">
+ <folding />
+ </state>
+ </provider>
+ </entry>
+ </file>
</leaf>
</component>
<component name="FindManager">
@@ -123,22 +134,22 @@
<component name="IdeDocumentHistory">
<option name="changedFiles">
<list>
- <option value="$PROJECT_DIR$/application/providers/Solr.php" />
- <option
value="$PROJECT_DIR$/library/Zend/Controller/Dispatcher/Stubbles.php" />
- <option value="$PROJECT_DIR$/application/utilities/REST.php" />
- <option
value="$PROJECT_DIR$/application/utilities/interfaces/REST.php" />
<option value="$PROJECT_DIR$/application/configs/application.ini"
/>
<option value="$PROJECT_DIR$/public/index.php" />
<option value="$PROJECT_DIR$/build/solr/data-config.xml" />
<option
value="$PROJECT_DIR$/vagrant/puppet/modules/kateglo/files/schema.xml" />
- <option
value="$PROJECT_DIR$/vagrant/puppet/modules/kateglo/files/solrconfig.xml" />
<option
value="$PROJECT_DIR$/vagrant/puppet/modules/mysql/files/my.cnf" />
- <option
value="$PROJECT_DIR$/vagrant/puppet/modules/mysql/manifests/init.pp" />
- <option value="$PROJECT_DIR$/vagrant/puppet/manifests/main.pp" />
- <option
value="$PROJECT_DIR$/vagrant/puppet/modules/bootstrap/manifests/init.pp" />
<option
value="$PROJECT_DIR$/vagrant/puppet/modules/php/manifests/init.pp" />
+ <option
value="$PROJECT_DIR$/vagrant/puppet/modules/diverse/manifests/init.pp" />
<option
value="$PROJECT_DIR$/vagrant/puppet/modules/solr/manifests/init.pp" />
+ <option
value="$PROJECT_DIR$/vagrant/puppet/modules/kateglo/files/solrconfig.xml" />
+ <option
value="$PROJECT_DIR$/vagrant/puppet/modules/solr/templates/default.jetty.erb"
/>
+ <option
value="$PROJECT_DIR$/vagrant/puppet/modules/bootstrap/manifests/init.pp" />
+ <option
value="$PROJECT_DIR$/vagrant/puppet/modules/kateglo/templates/solrconfig.xml.erb"
/>
+ <option
value="$PROJECT_DIR$/vagrant/puppet/modules/kateglo/templates/data-config.xml.erb"
/>
+ <option
value="$PROJECT_DIR$/vagrant/puppet/modules/mysql/manifests/init.pp" />
<option
value="$PROJECT_DIR$/vagrant/puppet/modules/kateglo/manifests/init.pp" />
+ <option value="$PROJECT_DIR$/vagrant/puppet/manifests/main.pp" />
</list>
</option>
</component>
@@ -202,6 +213,16 @@
<sortByType />
</navigator>
<panes>
+ <pane id="Scope">
+ <subPane subId="Project Files">
+ <PATH>
+ <PATH_ELEMENT USER_OBJECT="Root">
+ <option name="myItemId" value="" />
+ <option name="myItemType" value="" />
+ </PATH_ELEMENT>
+ </PATH>
+ </subPane>
+ </pane>
<pane id="ProjectPane">
<subPane>
<PATH>
@@ -277,6 +298,10 @@
<option name="myItemId" value="solr" />
<option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="templates" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
@@ -391,6 +416,36 @@
</PATH_ELEMENT>
</PATH>
<PATH>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="kateglo" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="kateglo" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="vagrant" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="puppet" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="modules" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="kateglo" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="templates" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ </PATH>
+ <PATH>
<PATH_ELEMENT>
<option name="myItemId" value="kateglo" />
<option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
@@ -481,6 +536,62 @@
</PATH_ELEMENT>
</PATH>
<PATH>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="kateglo" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="kateglo" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="vagrant" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="puppet" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="modules" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="apache" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="templates" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ </PATH>
+ <PATH>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="kateglo" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="kateglo" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="vagrant" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="puppet" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="modules" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="apache" />
+ <option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ </PATH>
+ <PATH>
<PATH_ELEMENT>
<option name="myItemId" value="kateglo" />
<option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
@@ -544,16 +655,6 @@
<option name="myItemType"
value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
</PATH>
- </subPane>
- </pane>
- <pane id="Scope">
- <subPane subId="Project Files">
- <PATH>
- <PATH_ELEMENT USER_OBJECT="Root">
- <option name="myItemId" value="" />
- <option name="myItemType" value="" />
- </PATH_ELEMENT>
- </PATH>
</subPane>
</pane>
</panes>
@@ -562,8 +663,8 @@
<property name="options.splitter.main.proportions" value="0.3" />
<property name="WebServerToolWindowFactoryState" value="true" />
<property name="options.lastSelected" value="preferences.keymap" />
- <property name="options.searchVisible" value="true" />
<property name="options.splitter.details.proportions" value="0.2" />
+ <property name="options.searchVisible" value="true" />
</component>
<component name="PublishConfig" serverName="kateglo-vagrant"
serverId="5947b0bc-2fa8-46b7-b5d6-2f09f74c0bdc" autoUpload="true">
<servers>
@@ -578,6 +679,7 @@
</component>
<component name="RecentsManager">
<key name="MoveFile.RECENT_KEYS">
+ <recent
name="C:\Users\Purnama\StormWorkspace\kateglo\vagrant\puppet\modules\kateglo\templates"
/>
<recent
name="C:\Users\Purnama\StormWorkspace\kateglo\vagrant\puppet\modules\kateglo\files"
/>
</key>
</component>
@@ -688,30 +790,58 @@
<created>1342514427103</created>
<updated>1342514427103</updated>
</task>
- <option name="localTasksCounter" value="8" />
+ <task id="LOCAL-00008" summary="Refactor Kateglo to work with new
third party library structure">
+ <created>1342869593113</created>
+ <updated>1342869593113</updated>
+ </task>
+ <task id="LOCAL-00009" summary="Refactor Kateglo to work with new
third party library structure">
+ <created>1342954281108</created>
+ <updated>1342954281108</updated>
+ </task>
+ <option name="localTasksCounter" value="10" />
<servers />
+ </component>
+ <component name="TodoView" selected-index="0">
+ <todo-panel id="selected-file">
+ <are-packages-shown value="false" />
+ <are-modules-shown value="false" />
+ <flatten-packages value="false" />
+ <is-autoscroll-to-source value="false" />
+ </todo-panel>
+ <todo-panel id="all">
+ <are-packages-shown value="false" />
+ <are-modules-shown value="false" />
+ <flatten-packages value="false" />
+ <is-autoscroll-to-source value="false" />
+ </todo-panel>
+ <todo-panel id="default-changelist">
+ <are-packages-shown value="false" />
+ <are-modules-shown value="false" />
+ <flatten-packages value="false" />
+ <is-autoscroll-to-source value="false" />
+ </todo-panel>
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="1382" height="754" extended-state="6" />
<editor active="false" />
<layout>
+ <window_info id="File Transfer" active="false" anchor="bottom"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.32491583" sideWeight="0.5" order="7" side_tool="false"
content_ui="tabs" />
<window_info id="Data Sources" active="false" anchor="right"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.33" sideWeight="0.5" order="3" side_tool="false"
content_ui="tabs" />
- <window_info id="Changes" active="false" anchor="bottom"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.3289183" sideWeight="0.5" order="7" side_tool="false"
content_ui="tabs" />
- <window_info id="TODO" active="false" anchor="bottom"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.33" sideWeight="0.5" order="6" side_tool="false"
content_ui="tabs" />
+ <window_info id="Changes" active="false" anchor="bottom"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.32828283" sideWeight="0.5" order="7" side_tool="false"
content_ui="tabs" />
+ <window_info id="TODO" active="false" anchor="bottom"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.32996634" sideWeight="0.5" order="6" side_tool="false"
content_ui="tabs" />
<window_info id="Structure" active="false" anchor="left"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.25" sideWeight="0.5" order="1" side_tool="true" content_ui="tabs"
/>
<window_info id="Remote Host" active="false" anchor="right"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.33" sideWeight="0.5" order="3" side_tool="false"
content_ui="tabs" />
- <window_info id="Project" active="true" anchor="left"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true"
weight="0.27272728" sideWeight="0.67171717" order="0" side_tool="false"
content_ui="combo" />
+ <window_info id="Project" active="true" anchor="left"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true"
weight="0.21363637" sideWeight="0.6750842" order="0" side_tool="false"
content_ui="combo" />
<window_info id="Debug" active="false" anchor="bottom"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs"
/>
<window_info id="Favorites" active="false" anchor="left"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs"
/>
<window_info id="Event Log" active="false" anchor="bottom"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.32996634" sideWeight="0.5" order="7" side_tool="true"
content_ui="tabs" />
<window_info id="Run" active="false" anchor="bottom"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.33" sideWeight="0.5" order="2" side_tool="false"
content_ui="tabs" />
<window_info id="Version Control" active="false" anchor="bottom"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.33" sideWeight="0.5" order="7" side_tool="false"
content_ui="tabs" />
- <window_info id="File Transfer" active="false" anchor="bottom"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.32491583" sideWeight="0.5" order="7" side_tool="false"
content_ui="tabs" />
<window_info id="Cvs" active="false" anchor="bottom"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.25" sideWeight="0.5" order="4" side_tool="false"
content_ui="tabs" />
<window_info id="Message" active="false" anchor="bottom"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.33" sideWeight="0.5" order="0" side_tool="false"
content_ui="tabs" />
<window_info id="Ant Build" active="false" anchor="right"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.25" sideWeight="0.5" order="1" side_tool="false"
content_ui="tabs" />
- <window_info id="Find" active="false" anchor="bottom"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.43434343" sideWeight="0.5" order="1" side_tool="false"
content_ui="tabs" />
- <window_info id="Messages" active="false" anchor="bottom"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true"
weight="0.32828283" sideWeight="0.5" order="7" side_tool="false"
content_ui="tabs" />
+ <window_info id="Find" active="false" anchor="bottom"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.28451177" sideWeight="0.5" order="1" side_tool="false"
content_ui="tabs" />
+ <window_info id="Messages" active="false" anchor="bottom"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.32828283" sideWeight="0.5" order="7" side_tool="false"
content_ui="tabs" />
<window_info id="Commander" active="false" anchor="right"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs"
/>
<window_info id="Hierarchy" active="false" anchor="right"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.25" sideWeight="0.5" order="2" side_tool="false"
content_ui="combo" />
<window_info id="Inspection" active="false" anchor="bottom"
auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false"
weight="0.3989899" sideWeight="0.5" order="5" side_tool="false"
content_ui="tabs" />
@@ -780,86 +910,88 @@
<breakpoint-manager />
</component>
<component name="editorHistoryManager">
- <entry file="file://$PROJECT_DIR$/application/configs/application.ini">
+ <entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/kateglo/files/spellings.txt">
<provider selected="true" editor-type-id="text-editor">
- <state line="19" column="37" selection-start="778"
selection-end="1248" vertical-scroll-proportion="-4.76" />
+ <state line="0" column="0" selection-start="0" selection-end="0"
vertical-scroll-proportion="0.0" />
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/application/modules/default/views/macros/header.html">
+ <entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/kateglo/files/synonyms.txt">
<provider selected="true" editor-type-id="text-editor">
<state line="0" column="0" selection-start="0" selection-end="0"
vertical-scroll-proportion="0.0" />
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/application/modules/default/controllers/IndexController.php">
+ <entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/kateglo/files/stopwords.txt">
<provider selected="true" editor-type-id="text-editor">
- <state line="95" column="3844926" selection-start="3056"
selection-end="3394" vertical-scroll-proportion="-0.65384614" />
+ <state line="0" column="0" selection-start="0" selection-end="0"
vertical-scroll-proportion="0.0" />
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/kateglo/files/data-config.xml">
+ <entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/kateglo/files/schema.xml">
<provider selected="true" editor-type-id="text-editor">
- <state line="1" column="96" selection-start="109"
selection-end="109" vertical-scroll-proportion="0.03057554" />
+ <state line="491" column="8" selection-start="27953"
selection-end="27953" vertical-scroll-proportion="0.03057554" />
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/kateglo/files/spellings.txt">
+ <entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/php/manifests/init.pp">
<provider selected="true" editor-type-id="text-editor">
- <state line="0" column="0" selection-start="0" selection-end="0"
vertical-scroll-proportion="0.0" />
+ <state line="42" column="4" selection-start="1209"
selection-end="1209" vertical-scroll-proportion="0.029876977" />
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/kateglo/files/synonyms.txt">
+ <entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/solr/manifests/init.pp">
<provider selected="true" editor-type-id="text-editor">
- <state line="0" column="0" selection-start="0" selection-end="0"
vertical-scroll-proportion="0.0" />
+ <state line="106" column="27" selection-start="3777"
selection-end="3785" vertical-scroll-proportion="0.0" />
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/kateglo/files/stopwords.txt">
+ <entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/solr/templates/default.jetty.erb">
<provider selected="true" editor-type-id="text-editor">
- <state line="0" column="0" selection-start="0" selection-end="0"
vertical-scroll-proportion="0.0" />
+ <state line="27" column="85" selection-start="803"
selection-end="803" vertical-scroll-proportion="0.0" />
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/kateglo/files/schema.xml">
+ <entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/apache/templates/site.erb">
<provider selected="true" editor-type-id="text-editor">
- <state line="491" column="8" selection-start="27953"
selection-end="27953" vertical-scroll-proportion="0.03057554" />
+ <state line="3" column="17" selection-start="66"
selection-end="85" vertical-scroll-proportion="0.0" />
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/kateglo/files/solrconfig.xml">
+ <entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/bootstrap/manifests/init.pp">
<provider selected="true" editor-type-id="text-editor">
- <state line="92" column="14" selection-start="3940"
selection-end="3964" vertical-scroll-proportion="0.029876977" />
+ <state line="13" column="46" selection-start="393"
selection-end="393" vertical-scroll-proportion="0.0" />
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/mysql/files/my.cnf">
+ <entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/diverse/manifests/init.pp">
<provider selected="true" editor-type-id="text-editor">
- <state line="46" column="0" selection-start="1389"
selection-end="1389" vertical-scroll-proportion="0.0" />
+ <state line="8" column="0" selection-start="261"
selection-end="261" vertical-scroll-proportion="0.0" />
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/php/manifests/init.pp">
+ <entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/kateglo/templates/solrconfig.xml.erb">
<provider selected="true" editor-type-id="text-editor">
- <state line="42" column="4" selection-start="1209"
selection-end="1209" vertical-scroll-proportion="0.0" />
+ <state line="1111" column="39" selection-start="43089"
selection-end="43089" vertical-scroll-proportion="0.0" />
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/solr/manifests/init.pp">
+ <entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/kateglo/templates/data-config.xml.erb">
<provider selected="true" editor-type-id="text-editor">
- <state line="114" column="30" selection-start="3865"
selection-end="3866" vertical-scroll-proportion="0.0">
- <folding />
- </state>
+ <state line="2" column="47" selection-start="192"
selection-end="192" vertical-scroll-proportion="0.0" />
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/bootstrap/manifests/init.pp">
+ <entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/mysql/files/my.cnf">
<provider selected="true" editor-type-id="text-editor">
- <state line="9" column="21" selection-start="307"
selection-end="307" vertical-scroll-proportion="0.0" />
+ <state line="48" column="125" selection-start="1430"
selection-end="1430" vertical-scroll-proportion="0.0">
+ <folding />
+ </state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/vagrant/puppet/manifests/main.pp">
+ <entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/mysql/manifests/init.pp">
<provider selected="true" editor-type-id="text-editor">
- <state line="13" column="4" selection-start="253"
selection-end="253" vertical-scroll-proportion="0.0" />
+ <state line="33" column="61" selection-start="840"
selection-end="840" vertical-scroll-proportion="0.0" />
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/mysql/manifests/init.pp">
+ <entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/kateglo/manifests/init.pp">
<provider selected="true" editor-type-id="text-editor">
- <state line="12" column="107" selection-start="255"
selection-end="255" vertical-scroll-proportion="0.0" />
+ <state line="68" column="65" selection-start="2293"
selection-end="2293" vertical-scroll-proportion="0.0">
+ <folding />
+ </state>
</provider>
</entry>
- <entry
file="file://$PROJECT_DIR$/vagrant/puppet/modules/kateglo/manifests/init.pp">
+ <entry file="file://$PROJECT_DIR$/vagrant/puppet/manifests/main.pp">
<provider selected="true" editor-type-id="text-editor">
- <state line="49" column="26" selection-start="1429"
selection-end="1429" vertical-scroll-proportion="0.03057554">
+ <state line="6" column="22" selection-start="161"
selection-end="161" vertical-scroll-proportion="0.17926186">
<folding />
</state>
</provider>
=======================================
--- /branches/kateglox/vagrant/puppet/manifests/main.pp Mon Jul 16 15:08:20
2012
+++ /branches/kateglox/vagrant/puppet/manifests/main.pp Fri Jul 27 05:44:43
2012
@@ -2,6 +2,11 @@
Exec {
path =>
["/usr/bin", "/bin", "/usr/sbin", "/sbin", "/usr/local/bin", "/usr/local/sbin"]
}
+
+$globalUser = 'vagrant'
+$mysqlRootPassword = ""
+$mysqlUser = ""
+$mysqlUserPassword = ""
node default{
include bootstrap
=======================================
--- /branches/kateglox/vagrant/puppet/modules/bootstrap/manifests/init.pp
Sat Jul 21 04:14:51 2012
+++ /branches/kateglox/vagrant/puppet/modules/bootstrap/manifests/init.pp
Fri Jul 27 05:44:43 2012
@@ -11,7 +11,7 @@
}
# create download directory
- file { '/home/vagrant/downloads':
+ file { "/home/${globalUser}/downloads":
ensure => 'directory',
}
}
=======================================
--- /branches/kateglox/vagrant/puppet/modules/diverse/manifests/init.pp Wed
Jul 4 08:55:39 2012
+++ /branches/kateglox/vagrant/puppet/modules/diverse/manifests/init.pp Fri
Jul 27 05:44:43 2012
@@ -7,14 +7,4 @@
require => Exec["apt-get update"]
}
- # After installing augeas and augeas ruby, this step must be taken so
- exec { "ln -s /usr/lib/ruby/1.8/x86_64-linux/_augeas.so
/opt/vagrant_ruby/lib/ruby/site_ruby/1.8/x86_64-linux/":
- creates
=> "/opt/vagrant_ruby/lib/ruby/site_ruby/1.8/x86_64-linux/_augeas.so",
- require => [Package["augeas-tools"], Package["libaugeas-dev"],
Package["libaugeas-ruby"]],
- }
-
- exec { "ln -s /usr/lib/ruby/1.8/augeas.rb
/opt/vagrant_ruby/lib/ruby/site_ruby/1.8/":
- creates => "/opt/vagrant_ruby/lib/ruby/site_ruby/1.8/augeas.rb",
- require => [Package["augeas-tools"], Package["libaugeas-dev"],
Package["libaugeas-ruby"]],
- }
-}
+}
=======================================
--- /branches/kateglox/vagrant/puppet/modules/kateglo/manifests/init.pp Sun
Jul 22 03:51:18 2012
+++ /branches/kateglox/vagrant/puppet/modules/kateglo/manifests/init.pp Fri
Jul 27 05:44:43 2012
@@ -1,67 +1,81 @@
class kateglo {
- file { '/home/vagrant/log':
- ensure => 'directory',
- group => 'www-data',
- owner => 'www-data',
- require => [Package['apache2']]
+ file { "/home/${globalUser}/log":
+ ensure => "directory",
+ group => "www-data",
+ owner => "www-data",
+ require => [Package["apache2"]]
}
exec { "checkout kateglo" :
command => "svn co
https://kateglo.googlecode.com/svn/branches/kateglox kateglo",
- cwd => '/home/vagrant/',
- creates => '/home/vagrant/kateglo',
+ cwd => "/home/${globalUser}/",
+ creates => "/home/${globalUser}/kateglo",
timeout => 0,
- require => [Package['apache2'], Package['subversion']],
+ require => [Package["apache2"], Package["subversion"]],
}
- file { '/home/vagrant/kateglo':
- ensure => 'directory',
+ file { "/home/${globalUser}/kateglo":
+ ensure => "directory",
recurse => inf,
- group => 'www-data',
- owner => 'www-data',
+ group => "www-data",
+ owner => "www-data",
require => [Exec["checkout kateglo"]]
}
- file { '/home/vagrant/kateglo/cache':
- ensure => 'directory',
+ file { "/home/${globalUser}/kateglo/cache":
+ ensure => "directory",
recurse => inf,
- group => 'www-data',
- owner => 'www-data',
+ group => "www-data",
+ owner => "www-data",
require => [Exec["checkout kateglo"]]
}
- exec { 'curl -s
http://getcomposer.org/installer | php' :
- cwd => '/home/vagrant/kateglo',
- user => 'www-data',
- group => 'www-data',
+ exec { "curl -s
http://getcomposer.org/installer | php" :
+ cwd => "/home/${globalUser}/kateglo",
+ user => "www-data",
+ group => "www-data",
timeout => 0,
- creates => '/home/vagrant/kateglo/composer.phar',
+ creates => "/home/${globalUser}/kateglo/composer.phar",
logoutput => true,
- require => [Package['curl'],Exec["checkout kateglo"]],
+ require => [Package["curl"],Exec["checkout kateglo"]],
}
- exec { 'php composer.phar install' :
- cwd => '/home/vagrant/kateglo',
- creates => '/home/vagrant/kateglo/vendor',
+ exec { "php composer.phar install" :
+ cwd => "/home/${globalUser}/kateglo",
+ creates => "/home/${globalUser}/kateglo/vendor",
user => "root",
group => "root",
timeout => 0,
logoutput => true,
- require => [Package['php5'],Exec['curl -s
http://getcomposer.org/installer | php']],
+ require => [Package["php5"],Exec["curl -s
http://getcomposer.org/installer | php"]],
notify => Exec["apache2ctl graceful"],
}
+
+ $identifiedByPassword = "identified by '${mysqlRootPassword}'"
exec { "create kateglo db":
- unless => "mysql -u root kateglox",
- command => "mysql -u root -e \"create database kateglox; grant all
on kateglox.* to root ;\"",
+ unless => "mysql -u root -p\"${mysqlRootPassword}\" kateglox",
+ command => "mysql -u root -p\"${mysqlRootPassword}\" -e \"create
database kateglox; grant all on kateglox.* to root
${identifiedByPassword};\"",
group => "root",
user => "root",
- require => [Service["mysql"], Package["mysql-server"]],
+ require => [Service["mysql"], Package["mysql-server"],
Exec["set-mysql-root-password"]],
}
- file { "/home/vagrant/kateglox.sql":
+ if $mysqlUser != "" {
+ if $mysqlUserPassword != "" {
+ exec { "grant table to user":
+ unless => "mysql -u ${mysqlUser} -p\"${mysqlUserPassword}\"
kateglox",
+ command => "mysql -u root -p\"${mysqlRootPassword}\" -e
\"grant all on kateglox.* to ${mysqlUser} identified
by '${mysqlUserPassword}'; grant all on kateglox.* to
${mysqlUser}@'localhost' identified by '${mysqlUserPassword}';\"",
+ group => "root",
+ user => "root",
+ require => [Service["mysql"], Package["mysql-server"],
Exec["create user"], Exec["create kateglo db"]],
+ }
+ }
+ }
+
+ file { "/home/${globalUser}/kateglox.sql":
ensure => present,
source => "puppet:///modules/kateglo/kateglox.sql",
require => Exec["create kateglo db"],
@@ -70,36 +84,36 @@
exec { "import kateglo dump":
refreshonly => true,
- command => "mysql -u root kateglox < kateglox.sql",
- cwd => "/home/vagrant/",
+ command => "mysql -u root -p\"${mysqlRootPassword}\" kateglox <
kateglox.sql",
+ cwd => "/home/${globalUser}/",
group => "root", user => "root",
logoutput => true,
timeout => 0,
- require => File["/home/vagrant/kateglox.sql"],
- subscribe => File["/home/vagrant/kateglox.sql"],
+ require => File["/home/${globalUser}/kateglox.sql"],
+ subscribe => File["/home/${globalUser}/kateglox.sql"],
}
# ServerAdmin webmaster@localhost
- $serverAdmin = '
webm...@kateglo.com'
+ $serverAdmin = "
webm...@kateglo.com"
# DocumentRoot /var/www
- $documentRoot = '/home/vagrant/kateglo/public'
+ $documentRoot = "/home/${globalUser}/kateglo/public"
# ErrorLog ${APACHE_LOG_DIR}/error.log
- $errorLog = '${APACHE_LOG_DIR}/error.log'
+ $errorLog = "${APACHE_LOG_DIR}/error.log"
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
- $logLevel = 'debug'
+ $logLevel = "debug"
file {"/etc/apache2/sites-available/kateglo":
- content => template('apache/site.erb'),
- owner => 'root',
- group => 'root',
+ content => template("apache/site.erb"),
+ owner => "root",
+ group => "root",
mode => 0644,
- require => Package['apache2'],
- ensure => 'present',
- notify => Exec['/usr/sbin/a2ensite kateglo'],
+ require => Package["apache2"],
+ ensure => "present",
+ notify => Exec["/usr/sbin/a2ensite kateglo"],
}
exec { "/usr/sbin/a2dissite default":
@@ -110,20 +124,34 @@
exec { "/usr/sbin/a2ensite kateglo":
require => File["/etc/apache2/sites-available/kateglo"],
- creates => '/etc/apache2/sites-enabled/kateglo',
+ creates => "/etc/apache2/sites-enabled/kateglo",
notify => Exec["apache2ctl graceful"],
}
- file { "/home/vagrant/solr/conf/data-config.xml":
+ if $mysqlRootPassword != "" {
+ if $mysqlUser != "" {
+ if $mysqlUserPassword != "" {
+ $solrDBUser = $mysqlUser
+ $solrDBPassword = $mysqlUserPassword
+ }
+ }else{
+ $solrDBUser = "root"
+ $solrDBPassword = $mysqlRootPassword
+ }
+ } else {
+ $solrDBUser = "root"
+ $solrDBPassword = ""
+ }
+ file { "/home/${globalUser}/solr/conf/data-config.xml":
ensure => present,
- source => "puppet:///modules/kateglo/data-config.xml",
+ content => template("kateglo/data-config.xml.erb"),
owner => "jetty", group => "jetty",
mode => "0644",
require => File["/etc/default/jetty"],
notify => Service["jetty"],
}
- file { "/home/vagrant/solr/conf/elevate.xml":
+ file { "/home/${globalUser}/solr/conf/elevate.xml":
ensure => present,
source => "puppet:///modules/kateglo/elevate.xml",
owner => "jetty", group => "jetty",
@@ -132,7 +160,7 @@
notify => Service["jetty"],
}
- file { "/home/vagrant/solr/conf/protwords.txt":
+ file { "/home/${globalUser}/solr/conf/protwords.txt":
ensure => present,
source => "puppet:///modules/kateglo/protwords.txt",
owner => "jetty", group => "jetty",
@@ -141,7 +169,7 @@
notify => Service["jetty"],
}
- file { "/home/vagrant/solr/conf/schema.xml":
+ file { "/home/${globalUser}/solr/conf/schema.xml":
ensure => present,
source => "puppet:///modules/kateglo/schema.xml",
owner => "jetty", group => "jetty",
@@ -150,16 +178,16 @@
notify => Service["jetty"],
}
- file { "/home/vagrant/solr/conf/solrconfig.xml":
+ file { "/home/${globalUser}/solr/conf/solrconfig.xml":
ensure => present,
- source => "puppet:///modules/kateglo/solrconfig.xml",
+ content => template("kateglo/solrconfig.xml.erb"),
owner => "jetty", group => "jetty",
mode => "0644",
require => File["/etc/default/jetty"],
notify => Service["jetty"],
}
- file { "/home/vagrant/solr/conf/spellings.txt":
+ file { "/home/${globalUser}/solr/conf/spellings.txt":
ensure => present,
source => "puppet:///modules/kateglo/spellings.txt",
owner => "jetty", group => "jetty",
@@ -168,7 +196,7 @@
notify => Service["jetty"],
}
- file { "/home/vagrant/solr/conf/stopwords.txt":
+ file { "/home/${globalUser}/solr/conf/stopwords.txt":
ensure => present,
source => "puppet:///modules/kateglo/stopwords.txt",
owner => "jetty", group => "jetty",
@@ -177,7 +205,7 @@
notify => Service["jetty"],
}
- file { "/home/vagrant/solr/conf/synonyms.txt":
+ file { "/home/${globalUser}/solr/conf/synonyms.txt":
ensure => present,
source => "puppet:///modules/kateglo/synonyms.txt",
owner => "jetty", group => "jetty",
@@ -194,11 +222,11 @@
exec { "solr full import":
command => "curl
http://127.0.0.1:8080/solr/dataimport?command=full-import",
logoutput => true,
- unless => "test -f /home/vagrant/solr/data/index/*.fdx",
- require => [File["/home/vagrant/solr/conf/synonyms.txt"],
File["/home/vagrant/solr/conf/stopwords.txt"],
- File["/home/vagrant/solr/conf/spellings.txt"],
File["/home/vagrant/solr/conf/solrconfig.xml"],
- File["/home/vagrant/solr/conf/schema.xml"],
File["/home/vagrant/solr/conf/protwords.txt"],
- File["/home/vagrant/solr/conf/elevate.xml"],
File["/home/vagrant/solr/conf/data-config.xml"],
+ unless => "test -f /home/${globalUser}/solr/data/index/*.fdx",
+ require => [File["/home/${globalUser}/solr/conf/synonyms.txt"],
File["/home/${globalUser}/solr/conf/stopwords.txt"],
+ File["/home/${globalUser}/solr/conf/spellings.txt"],
File["/home/${globalUser}/solr/conf/solrconfig.xml"],
+ File["/home/${globalUser}/solr/conf/schema.xml"],
File["/home/${globalUser}/solr/conf/protwords.txt"],
+ File["/home/${globalUser}/solr/conf/elevate.xml"],
File["/home/${globalUser}/solr/conf/data-config.xml"],
Exec["import kateglo dump"], Service["jetty"], Exec["wait for
jetty"]],
}
=======================================
--- /branches/kateglox/vagrant/puppet/modules/mysql/manifests/init.pp Sat
Jul 21 04:14:51 2012
+++ /branches/kateglox/vagrant/puppet/modules/mysql/manifests/init.pp Fri
Jul 27 05:44:43 2012
@@ -19,4 +19,26 @@
require => Package["mysql-server"],
notify => Service["mysql"],
}
-}
+
+
+ exec { "set-mysql-root-password":
+ unless => "mysqladmin -uroot -p\"${mysqlRootPassword}\" status",
+ command => "mysqladmin -uroot password \"${mysqlRootPassword}\"",
+ require => Service["mysql"],
+ group => "root",
+ user => "root",
+ }
+
+
+ if $mysqlUser != "" {
+ if $mysqlUserPassword != "" {
+ exec { "create user":
+ unless => "mysqladmin -u${mysqlUser} ${mysqlAddPassword}
status",
+ command => "mysql -u root -p\"${mysqlRootPassword}\" -e
\"create user ${mysqlUser} identified by ${mysqlUserPassword};\"",
+ group => "root",
+ user => "root",
+ require => [Service["mysql"], Package["mysql-server"],
Exec["set-mysql-root-password"]],
+ }
+ }
+ }
+}
=======================================
--- /branches/kateglox/vagrant/puppet/modules/solr/manifests/init.pp Sat
Jul 21 04:14:51 2012
+++ /branches/kateglox/vagrant/puppet/modules/solr/manifests/init.pp Fri
Jul 27 05:44:43 2012
@@ -21,22 +21,22 @@
$mysqlConnector = 'mysql-connector-java-5.1.21'
exec { "mysql connector" :
- cwd => "/home/vagrant/downloads/",
+ cwd => "/home/${globalUser}/downloads/",
command => "wget
http://ftp.dc.aleron.net/pub/mysql/Connector-J/${mysqlConnector}.tar.gz",
- unless => "test -f /home/vagrant/downloads/${mysqlConnector}.tar.gz",
+ unless => "test -f
/home/${globalUser}/downloads/${mysqlConnector}.tar.gz",
timeout => 0,
- require => [Package["jetty"], Package["mysql-server"],
File["/home/vagrant/downloads"]]
+ require => [Package["jetty"], Package["mysql-server"],
File["/home/${globalUser}/downloads"]]
}
exec { "mysql connector extract":
- cwd => "/home/vagrant/downloads",
- command => "tar -xvzf
/home/vagrant/downloads/${mysqlConnector}.tar.gz",
- unless => "test -d /home/vagrant/downloads/${mysqlConnector}",
+ cwd => "/home/${globalUser}/downloads",
+ command => "tar -xvzf
/home/${globalUser}/downloads/${mysqlConnector}.tar.gz",
+ unless => "test -d
/home/${globalUser}/downloads/${mysqlConnector}",
require => [ Exec["mysql connector"] ],
}
exec {"mysql connector link library":
- cwd => "/home/vagrant/downloads/${mysqlConnector}/",
+ cwd => "/home/${globalUser}/downloads/${mysqlConnector}/",
command => "ln -s ${mysqlConnector}-bin.jar /usr/share/jetty/lib/",
unless => "test -h /usr/share/jetty/lib/${mysqlConnector}-bin.jar",
require => [Exec["mysql connector extract"]],
@@ -45,28 +45,28 @@
$solrPackage = 'apache-solr-3.6.0'
exec {"solr wget":
- cwd => "/home/vagrant/downloads",
+ cwd => "/home/${globalUser}/downloads",
command => "wget
http://mirror.softaculous.com/apache/lucene/solr/3.6.0/${solrPackage}.tgz",
- unless => "test -f /home/vagrant/downloads/${solrPackage}.tgz",
+ unless => "test -f
/home/${globalUser}/downloads/${solrPackage}.tgz",
timeout => 0,
- require => [ Package["jetty"], File["/home/vagrant/downloads"] ],
+ require => [ Package["jetty"],
File["/home/${globalUser}/downloads"] ],
}
exec {"solr extract":
- cwd => "/home/vagrant/downloads",
- command => "tar -xvzf /home/vagrant/downloads/${solrPackage}.tgz",
- unless => "test -d /home/vagrant/downloads/${solrPackage}",
+ cwd => "/home/${globalUser}/downloads",
+ command => "tar -xvzf
/home/${globalUser}/downloads/${solrPackage}.tgz",
+ unless => "test -d /home/${globalUser}/downloads/${solrPackage}",
require => [ Package["jetty"], Exec["solr wget"] ],
}
exec {"solr move":
- cwd => "/home/vagrant/downloads/${solrPackage}/example",
- command => "cp -r solr /home/vagrant/",
- unless => "test -d /home/vagrant/solr",
+ cwd => "/home/${globalUser}/downloads/${solrPackage}/example",
+ command => "cp -r solr /home/${globalUser}/",
+ unless => "test -d /home/${globalUser}/solr",
require => [ Package["jetty"], Exec["solr extract"] ],
}
- file { "/home/vagrant/solr":
+ file { "/home/${globalUser}/solr":
ensure => directory,
recurse => inf,
owner => "jetty",
@@ -75,21 +75,21 @@
}
exec {"solr dist move":
- cwd => "/home/vagrant/downloads/${solrPackage}/",
- command => "cp -r dist /home/vagrant/solr",
- unless => "test -d /home/vagrant/solr/dist",
+ cwd => "/home/${globalUser}/downloads/${solrPackage}/",
+ command => "cp -r dist /home/${globalUser}/solr",
+ unless => "test -d /home/${globalUser}/solr/dist",
require => [ Package["jetty"], Exec["solr move"] ],
}
exec {"solr link library":
- cwd => "/home/vagrant/solr/dist/",
+ cwd => "/home/${globalUser}/solr/dist/",
command => "ln -s apache-solr-dataimporthandler-*
/usr/share/jetty/lib/",
unless => "test -h
/usr/share/jetty/lib/apache-solr-dataimporthandler-3.6.0.jar",
require => [Exec["solr dist move"]],
}
exec {"solr copy war":
- cwd => "/home/vagrant/solr/dist/",
+ cwd => "/home/${globalUser}/solr/dist/",
command => "cp ${solrPackage}.war /var/lib/jetty/webapps",
creates => "/var/lib/jetty/webapps/${solrPackage}.war",
unless => "test -f /var/lib/jetty/webapps/solr.war",
@@ -113,9 +113,9 @@
}
exec {"mysql connector copy library":
- cwd => "/home/vagrant/downloads/${mysqlConnector}/",
- command => "cp ${mysqlConnector}-bin.jar /home/vagrant/solr/dist/",
- unless => "test -f
/home/vagrant/solr/dist/${mysqlConnector}-bin.jar",
+ cwd => "/home/${globalUser}/downloads/${mysqlConnector}/",
+ command => "cp ${mysqlConnector}-bin.jar
/home/${globalUser}/solr/dist/",
+ unless => "test -f
/home/${globalUser}/solr/dist/${mysqlConnector}-bin.jar",
require => [Exec["mysql connector extract"], Exec["solr copy
war"]],
}
=======================================
---
/branches/kateglox/vagrant/puppet/modules/solr/templates/default.jetty.erb
Mon Jul 16 01:09:42 2012
+++
/branches/kateglox/vagrant/puppet/modules/solr/templates/default.jetty.erb
Fri Jul 27 05:44:43 2012
@@ -25,7 +25,7 @@
#JETTY_ARGS=
# Extra options to pass to the JVM
-JAVA_OPTIONS="-Xmx256m -Djava.awt.headless=true
-Dsolr.solr.home=/home/vagrant/solr $JAVA_OPTIONS"
+JAVA_OPTIONS="-Xmx256m -Djava.awt.headless=true -Dsolr.solr.home=/home/<%=
globalUser %>/solr $JAVA_OPTIONS"
# Home of Java installation.
JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/