I have created custom sections using the tutorials and videos. It works like a charm. But now I want to add search capabilities in my section. I'm still thinking about what direction to follow. How I see it, I have two options:
- implement search using sql queries against the table (not my preferred way, since the data expans multiple tables and I want to search in almost all properties). Using fulltextsearch of SQL is difficult, since I have to consider the hosting environment, which I dont know whether FTS is available. Also I want my custom section to work as a package that is database independent.
- Implement search using Lucene.Net. Which I think is preferrable. But I don't know where to start. I have used Lucene.Net like 5 years ago, and I am not sure, if I can use Lucene without interfering with the Lucene implementation in Umbraco, like maybe overwriting the index files or creating an instance of the indexer, which is required to be a singleton as far as I remember.
So, what advice, tips do you have for implementing search in custom sections?
NHibernate has built-in support for Lucene.Net so if you are using that as your ORM then you can easily implement it.
You could conceivably use Examine but if you're not using Umbraco content to store your data you'll need to create the xml yourself and push it into Examine manually
Search in Custom Section
Hi,
I have created custom sections using the tutorials and videos. It works like a charm. But now I want to add search capabilities in my section. I'm still thinking about what direction to follow. How I see it, I have two options:
- implement search using sql queries against the table (not my preferred way, since the data expans multiple tables and I want to search in almost all properties). Using fulltextsearch of SQL is difficult, since I have to consider the hosting environment, which I dont know whether FTS is available. Also I want my custom section to work as a package that is database independent.
- Implement search using Lucene.Net. Which I think is preferrable. But I don't know where to start. I have used Lucene.Net like 5 years ago, and I am not sure, if I can use Lucene without interfering with the Lucene implementation in Umbraco, like maybe overwriting the index files or creating an instance of the indexer, which is required to be a singleton as far as I remember.
So, what advice, tips do you have for implementing search in custom sections?
Thank you,
Mounhim
NHibernate has built-in support for Lucene.Net so if you are using that as your ORM then you can easily implement it.
You could conceivably use Examine but if you're not using Umbraco content to store your data you'll need to create the xml yourself and push it into Examine manually
is working on a reply...