QueryParser parser = new QueryParser( " LineText", analyzer) IndexSearcher searcher = new IndexSearcher(luceneIndexDirectory) Public IEnumerable Search( string searchTerm) Something like that, in which case I would recommend reusing the Run, but in a production application you may build the index every 5 mins or Obviously for this demo the Lucene index is only created once per application Reuse them rather than creating new one each time you rebuild the index. Quantites of data you may want to create static Field fields and One thing that may be of interest, is that if you are dealing with vast
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |