Pull out from factbook-webapp, chanhed DocumentRepository architecture and logic of interaction with Sphinx.
Added search by profile method and its utils
Added methods to split and store phrases to the separate index.
Moved get document text logic into DocumentAdapter class. Add table private field to adapters, it makes easy switch to test tables while testing.
Added methods to DocumentRepository to search phrases. Wrote search by query test for DocumentRepository.
Finished tests for DocumentRepository a lot of bug fixing and refactoring.
Integrate core classes with Web interface
Refactor a lot of classes to adopt DocumentRepository handle Phrase as a Document. Made DocumentRepository.findDocuments(Profile) more flexible and easy to read.
Bug fixes and SearchProfile creation from query string
Changed algorithm of document (and phrase) weight estimating - removed from formula Sphinx document relevancy. Added DbUtils class to generically handle mass store to MySQL database (throw CSV InputStream).
Switched factbook-core to Spring and start to make SearchProfile main operations. Change word pair in SearchProfileLine to List<String> (nore universal)
Added save and get SearchProfile to/from DB
Add DB scripts
Finished CRUD profile operations
Added found articles handling and test with mocking DocumentAdapter
KeptDocumentAdapter done
DeletedDocumentAdapter done
Fixed bug with debug info in FoundDocument profile
Added Utils.getMaxValue for Collections, refactor old getMaxValue
Cloned from factbook-core, package utils excluded to eliminate recursive dependency wirh factbook-indexing. Fixed and tested all profile functionality.