Exemplo n.º 1
0
        /// <summary>
        /// Creates an index helper wing
        /// </summary>
        /// <param name="name">Name of the used index(id)</param>
        /// <param name="analyzer">How the data of the index is analysed</param>
        /// <returns></returns>
        public Wings BuildIndex(string name, Analyzer analyzer)
        {
            var wings = new Wings(IndexPath, name, analyzer);

            WingsIndex.Add(wings.Id, wings);
            return(wings);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Create a helping wing for a Greek language accent insensitive index
        /// </summary>
        /// <param name="name">Name of the index(id)</param>
        /// <returns>Helping wing for a Greek language accent insensitive index</returns>
        public Wings BuildGreekAccentInsensitiveIndex(string name)
        {
            var wings = new Wings(IndexPath, name, new GreekACIAnalyzer(IndexVersion));

            WingsIndex.Add(wings.Id, wings);
            return(wings);
        }
Exemplo n.º 3
0
 /// <summary>
 /// Creates an IndexSearch seeker
 /// </summary>
 /// <typeparam name="T">ParrotDocument class instance of the indexed documents</typeparam>
 /// <param name="wings">Helping wing</param>
 /// <returns>IndexSearch seeker instance(keep in mind to refresh when you have data updated)</returns>
 public IndexSearch <T> BuildSeek <T>(Wings wings) where T : ParrotDocument
 {
     return(new IndexSearch <T>(wings));
 }
Exemplo n.º 4
0
 /// <summary>
 /// Creates an indexer
 /// </summary>
 /// <typeparam name="T">ParrotDocument class instance of the indexed documents</typeparam>
 /// <param name="wings">Helping wing</param>
 /// <returns>Indexer instance</returns>
 public Indexer <T> BuildIndexer <T>(Wings wings) where T : ParrotDocument
 {
     return(new Indexer <T>(wings));
 }