Generate an Autocomplete suggestion index for your custom search applications using a Neo4j graph database and Windows Azure based cloud storage account.
Creates a hierachical JSON file index that is accessible over HTTP GET requests. Easily implemented into Bootstrap.js Type Ahead JQuery plugin. Use a Neo4j graph database for easy ranking and Windows Azure cloud storage account for JSON file storage.
Open the PredictiveAutocomplete solution file in Microsoft Visual Studio 2012.
Open the App.config file in the PredictiveAutocomplete_Test project.
Configure the settings to point to your Neo4j instance.
Configure the settings to point to your Windows Azure storage account.
Configure the path to your public storage container that will be used to store the JSON files.
Use the GetRankedNodesForQuery method to get ranked nodes from Neo4j graph database using a templated cypher query that queries an index using a supplied valid lucene query.
Each node in the index has a weight rating by specifying a relationship name which is used to determine the distinct number of incoming links to each node in your query with that relationship name.
You must specify the valid property name that is to be used as the label for the autocomplete search.
For example, if you are querying a database of books and wanted to list the names of books in the autocomplete search, then the label property would be "Title" where each book node b has b.Title as the book name.
Parameters in order:
Use the IndexAutoCompleteKey method in the Processor class to index the autocomplete keys to blob storage uri.
Your URI to the JSON file index will be:
http://BLOB_STORAGE_NAME.blob.core.windows.net/BLOB_STORAGE_CONTAINER_ID/cache/PARTIAL_SEARCH_QUERY