You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by Haitham Khedre <ha...@gmail.com> on 2012/12/13 03:54:47 UTC
Simplifying Lucene using Adapter Pattern , Generics , Reflection and
Custom Attributes
Today is a special day 12-12-2012 , so I tried really to release something
I really want to do
from long time.
I am introducing a draft Idea of how we can make Lucene.Net more RAD and
also simplifying
how the .Net Developers will interact with Lucene.Net .
The Idea is very simple we need to make the developer code normally in C#
Generics
that mean the developer just need to build a List of his document object
List<Student>
for example , and passing this to Lucene.Net to store it using default
Index and Store configuration
also to search Lucene.Net either send a free string search query , or build
a search object that
really represent your criteria to search your document.
by building an Adapter component that will handle the communication between
Lucene.Net
and C# Objects using very simple calls that will allow the result of the
Idea to come to true
using custom Attributes to allow us to decorate the Document class
properties
to explicit say what type of Index or Store you want this property to be
configured in Lucene.Net
Conclusion :
the Idea behind that class that it is used as an Adapter Pattern to
simplify the communication between Lucene.Net and C# OOP so developers can
send normal object to search and also receive the result in a collection
using Reflection and custom attributes to simplify Lucene and make it more
RAD development
the next step really is to componentize this to make it a visual component
that can communicate with DB providers like SQL server , and generate
classes and search UI by drag drop , like the DataSet component and other
Data Sources components.
http://weblogs.asp.net/haithamkhedre/archive/2012/12/13/simplifying-lucene-using-adapter-pattern-generics-reflection-and-custom-attributes.aspx
RE: Simplifying Lucene using Adapter Pattern , Generics ,
Reflection and Custom Attributes
Posted by Olivier Spinelli <ol...@invenietis.com>.
Hello,
May be you can start with http://linqtolucene.codeplex.com.
There are a lot of other Object <-> Lucene mappers/adapters/etc.
Even https://github.com/ravendb/ravendb may suit your needs.
Olivier
-----Message d'origine-----
De : Haitham Khedre [mailto:haitham.khedre@gmail.com]
Envoyé : jeudi 13 décembre 2012 03:55
À : dev@lucenenet.apache.org
Objet : Simplifying Lucene using Adapter Pattern , Generics , Reflection and Custom Attributes
Today is a special day 12-12-2012 , so I tried really to release something I really want to do
from long time.
I am introducing a draft Idea of how we can make Lucene.Net more RAD and also simplifying
how the .Net Developers will interact with Lucene.Net .
The Idea is very simple we need to make the developer code normally in C# Generics
that mean the developer just need to build a List of his document object List<Student>
for example , and passing this to Lucene.Net to store it using default Index and Store configuration
also to search Lucene.Net either send a free string search query , or build a search object that
really represent your criteria to search your document.
by building an Adapter component that will handle the communication between Lucene.Net
and C# Objects using very simple calls that will allow the result of the Idea to come to true
using custom Attributes to allow us to decorate the Document class properties
to explicit say what type of Index or Store you want this property to be configured in Lucene.Net
Conclusion :
the Idea behind that class that it is used as an Adapter Pattern to simplify the communication between Lucene.Net and C# OOP so developers can send normal object to search and also receive the result in a collection using Reflection and custom attributes to simplify Lucene and make it more RAD development the next step really is to componentize this to make it a visual component that can communicate with DB providers like SQL server , and generate classes and search UI by drag drop , like the DataSet component and other Data Sources components.
http://weblogs.asp.net/haithamkhedre/archive/2012/12/13/simplifying-lucene-using-adapter-pattern-generics-reflection-and-custom-attributes.aspx
Re: Simplifying Lucene using Adapter Pattern , Generics , Reflection
and Custom Attributes
Posted by Simon Svensson <si...@devhost.se>.
Hi,
Are you talking about something like NHibernate.Search
<http://ayende.com/blog/3992/nhibernate-search>? It's available on NuGet
<https://nuget.org/packages/NHibernate.Search>, and there's a
FluentNHibernate.Search <https://fnhsearch.codeplex.com/> for those
using FluentNHibernate.
// Simon
On 2012-12-13 03:54, Haitham Khedre wrote:
> Today is a special day 12-12-2012 , so I tried really to release something
> I really want to do
>
> from long time.
>
>
>
> I am introducing a draft Idea of how we can make Lucene.Net more RAD and
> also simplifying
>
> how the .Net Developers will interact with Lucene.Net .
>
>
>
> The Idea is very simple we need to make the developer code normally in C#
> Generics
>
> that mean the developer just need to build a List of his document object
> List<Student>
>
> for example , and passing this to Lucene.Net to store it using default
> Index and Store configuration
>
> also to search Lucene.Net either send a free string search query , or build
> a search object that
>
> really represent your criteria to search your document.
>
>
>
> by building an Adapter component that will handle the communication between
> Lucene.Net
>
> and C# Objects using very simple calls that will allow the result of the
> Idea to come to true
>
>
>
> using custom Attributes to allow us to decorate the Document class
> properties
>
> to explicit say what type of Index or Store you want this property to be
> configured in Lucene.Net
>
>
> Conclusion :
>
> the Idea behind that class that it is used as an Adapter Pattern to
> simplify the communication between Lucene.Net and C# OOP so developers can
> send normal object to search and also receive the result in a collection
> using Reflection and custom attributes to simplify Lucene and make it more
> RAD development
> the next step really is to componentize this to make it a visual component
> that can communicate with DB providers like SQL server , and generate
> classes and search UI by drag drop , like the DataSet component and other
> Data Sources components.
>
>
>
>
> http://weblogs.asp.net/haithamkhedre/archive/2012/12/13/simplifying-lucene-using-adapter-pattern-generics-reflection-and-custom-attributes.aspx
>