Advertisement
Guest User

Untitled

a guest
Aug 29th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. <dataConfig>
  2. <!-- The first element is the dataSource, in this case an HSQLDB database.
  3. The path to the JDBC driver and the JDBC URL and login credentials are all specified here.
  4. Other permissible attributes include whether or not to autocommit to Solr, the batchsize
  5. used in the JDBC connection, a 'readOnly' flag.
  6. The password attribute is optional if there is no password set for the DB.
  7. -->
  8. <dataSource driver="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/humhub" user="user" password="password"/>
  9. <!--
  10. Alternately the password can be encrypted as follows. This is the value obtained as a result of the command
  11. openssl enc -aes-128-cbc -a -salt -in pwd.txt
  12. password="U2FsdGVkX18QMjY0yfCqlfBMvAB4d3XkwY96L7gfO2o="
  13. WHen the password is encrypted, you must provide an extra attribute
  14. encryptKeyFile="/location/of/encryptionkey"
  15. This file should a text file with a single line containing the encrypt/decrypt password
  16.  
  17. -->
  18. <!-- A 'document' element follows, containing multiple 'entity' elements.
  19. Note that 'entity' elements can be nested, and this allows the entity
  20. relationships in the sample database to be mirrored here, so that we can
  21. generate a denormalized Solr record which may include multiple features
  22. for one item, for instance -->
  23. <document>
  24.  
  25. <!-- The possible attributes for the entity element are described below.
  26. Entity elements may contain one or more 'field' elements, which map
  27. the data source field names to Solr fields, and optionally specify
  28. per-field transformations -->
  29. <!-- this entity is the 'root' entity. -->
  30. <entity name="space" query="select * from space"
  31. deltaQuery="select name from space">
  32. <field column="NAME" name="name" />
  33. </entity>
  34. </document>
  35. </dataConfig>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement