Comments on: Custom mapping for NHibernate.Search /2009/10/26/custom-mapping-for-nhibernate-search/ Thu, 16 Mar 2017 16:29:15 +0000 hourly 1 http://wordpress.org/?v=4.2.14 By: que0x /2009/10/26/custom-mapping-for-nhibernate-search/comment-page-1/#comment-1868 Thu, 07 Jun 2012 12:05:00 +0000 /?p=66#comment-1868 perfect ! for me i had to modify the code a little bit:

private FieldMapping MapField(Expression<Func> propertyReference)
{
var property = (PropertyInfo)((MemberExpression)propertyReference.Body).Member;
var getter = new BasicPropertyAccessor.BasicGetter(typeof(T), property, property.Name);
var bridge = BridgeFactory.GuessType(property.Name, property.PropertyType, null, null);

return new FieldMapping(property.Name, bridge, getter);
}

otherwise the property will be UnaryExpression if i used object.

]]>
By: regisbsb /2009/10/26/custom-mapping-for-nhibernate-search/comment-page-1/#comment-1668 Sun, 22 Nov 2009 20:20:33 +0000 /?p=66#comment-1668 Thank you very much.

]]>
By: regisbsb /2009/10/26/custom-mapping-for-nhibernate-search/comment-page-1/#comment-1655 Sun, 22 Nov 2009 11:20:33 +0000 /?p=66#comment-1655 Thank you very much.

]]>
By: Andrey Shchekin /2009/10/26/custom-mapping-for-nhibernate-search/comment-page-1/#comment-1654 Sat, 21 Nov 2009 09:11:59 +0000 /?p=66#comment-1654 It is not like NHibernate.Search changed a lot, except for my mapping change.
Everything described here http://ayende.com/Blog/archive/2009/05/03/nhibe… is still relevant.
Also, there are query syntax rules: http://lucene.apache.org/java/2_3_2/queryparser….

]]>
By: regisbsb /2009/10/26/custom-mapping-for-nhibernate-search/comment-page-1/#comment-1653 Fri, 20 Nov 2009 23:47:20 +0000 /?p=66#comment-1653 Which samples? They are all very old I think.

]]>
By: Andrey Shchekin /2009/10/26/custom-mapping-for-nhibernate-search/comment-page-1/#comment-1652 Fri, 20 Nov 2009 21:53:47 +0000 /?p=66#comment-1652 You mean the search syntax itself? I think it is pretty much unchanged from the Java Lucene.
In general Lucene tutorials + Ayende samples were fresh enough for me, do not know if there is something better.

]]>
By: regisbsb /2009/10/26/custom-mapping-for-nhibernate-search/comment-page-1/#comment-1651 Fri, 20 Nov 2009 21:50:27 +0000 /?p=66#comment-1651 Hi, do you know where can I find some recent demo or tutorial using NHibernate.Search? Its all out dated in my searches.

]]>