Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# aliozgur 3/7/2008 2:38 PM (edited 3/10/2008 12:29 PM)
Hi All,

Some time ago I needed to use FullText Indexing (Lucene.NET) support provided by Cuyahoga.Core.
But as soon as I started coding I realised that classes in Cuyahoga.Core.Search namespace actually are not as generic as I expected. So i decided to refactor these classes to provide more generic wrappers to module developers.

My solution, or refactoring, is based on .NET generics and reflection.
Read my article and download code from CodeProject.

Question to Martijn Boland: Can we replace classes in Cuyahoga.Core.Search namespace with refactored versions?
I know this replacement will require refactoring to some modules such as Articles module and administrative pages.

History:
10 March 2008: ReflectionHelper singleton added to improve reflection performance.
# mgaerber 3/12/2008 9:41 AM
Hi,

you might also want to check this pdf http://cuyahoga-project.org/46/section.aspx/download/19
this is a documentation of extending the search with custom search fields. It works without reflection and meta attributes.

The idea was to keep special concerns (like search) out of the domain classes and use interfaces to specify further fields.

Did you base your extension on the trunk or the 1.5.x version?

Regards,

Max
# aliozgur 3/13/2008 9:05 AM (edited 3/13/2008 9:07 AM)
Hi Max,

My extension is based on the 1.5.x version. But after reading the pdf you pointed I realized that the new version/architecture will resolve some of the issues that forced me to write this extension. First of all I liked the idea that searching functionality is implemented as a service, since Cuyahoga makes very nice use of service based extensibility. But the main approach still remains the same. For example Path field is used as the key for the indexed entry. But when it comes to persisted dynamic content this content may not have an associated url, that was my case in one of the projects I was using Cuyahoga. In the pdf you pointed nothing was mentioned about querying the ft index, but I guess the new method is same as the previous one (1.5.x). Anyway I am planning to continue to use my own extension for indexing dynamic content , I mean persisted content, while keeping in mind that the new Cuyahoga version will have service based approach for ft indexing.

A Question: Do you avoid utilizing reflection and declarative programming (attributes) intentionally because of possible performance issues, just curious

I am looking forward for the new stable Cuyahoga version and I love to mention that I love to develop with Cuyahoga ;)
# mgaerber 3/22/2008 10:10 PM
Do you avoid utilizing reflection and declarative programming (attributes) intentionally because of possible performance issues, just curious

Yes, but performance is only the second thought.

The primary issue I see with attributes is that there can be a lot of them if you use them for several aspects. And the aspect of search (as others, like persistence) should be separated from the entity definition.

But as always, this is just a personal preference.
But when it comes to persisted dynamic content this content may not have an associated url

Didn't think about this yet. My thought was that every CMS Content will be reachable via an URL.
The bigger issue is that every Content is still tied to one Section only... this will have to be addressed as well