﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>Andrew commented on NHProf in the real world: NHibernate Search integration</title><description>Ayende,
  
  
I'm not sure how you can do it with creating 'TermQuery' objects, but if you manually write a lucene query in text form:
  
  
+IsActive:True AND (Title:weber^2.5 Body:weber^1.5 Categories.Name:weber)
  
  
This should mean:
  
IsActive must be true, and (Title field is like weber _OR_ body is like weber _OR_ categories.Name contains weber)
  
  
So you can use brackets in the queries (like in SQL) to specify what you really mean.
  
  
I am sure you can do the same with the TermQuery objects, I have not personally looked into that myself.
  
  
Slightly offtopic, but in Luke, be sure you select the same 'analyzer' that you used to create the index (eg, StandardAnalyzer instead of KeywordAnalyzer), otherwise when you query the index with Luke (using a different analyzer) you may get strange results - that's got me before.
</description><link>http://ayende.com/4243/nhprof-in-the-real-world-nhibernate-search-integration#comment7</link><guid>http://ayende.com/4243/nhprof-in-the-real-world-nhibernate-search-integration#comment7</guid><pubDate>Mon, 12 Oct 2009 22:38:51 GMT</pubDate></item><item><title>Kyle Baley commented on NHProf in the real world: NHibernate Search integration</title><description>I'll have to give NH Prof a try for NH Search but I thought the same thing Niklas did. I've been using the output from query.ToString( ) in Luke to do similar debugging. It would be nicer to get that without having to hook into the debugger though.
</description><link>http://ayende.com/4243/nhprof-in-the-real-world-nhibernate-search-integration#comment6</link><guid>http://ayende.com/4243/nhprof-in-the-real-world-nhibernate-search-integration#comment6</guid><pubDate>Mon, 12 Oct 2009 14:48:38 GMT</pubDate></item><item><title>Ayende Rahien commented on NHProf in the real world: NHibernate Search integration</title><description>Rafal,
  
Nope, IsActive is literally that, is an entry active or not.
  
A better name might be IsPublished, an inactive entry indicates that the entry is in draft mode.
</description><link>http://ayende.com/4243/nhprof-in-the-real-world-nhibernate-search-integration#comment5</link><guid>http://ayende.com/4243/nhprof-in-the-real-world-nhibernate-search-integration#comment5</guid><pubDate>Mon, 12 Oct 2009 11:40:59 GMT</pubDate></item><item><title>Arnis L. commented on NHProf in the real world: NHibernate Search integration</title><description>Thanks. Somehow missed this tool.
</description><link>http://ayende.com/4243/nhprof-in-the-real-world-nhibernate-search-integration#comment4</link><guid>http://ayende.com/4243/nhprof-in-the-real-world-nhibernate-search-integration#comment4</guid><pubDate>Mon, 12 Oct 2009 08:33:57 GMT</pubDate></item><item><title>Niklas commented on NHProf in the real world: NHibernate Search integration</title><description>I don't know how not having NH Prof would've made this _much_ harder... I debug-log my Lucene queries. It's not having Luke that would make things much harder here.
</description><link>http://ayende.com/4243/nhprof-in-the-real-world-nhibernate-search-integration#comment3</link><guid>http://ayende.com/4243/nhprof-in-the-real-world-nhibernate-search-integration#comment3</guid><pubDate>Mon, 12 Oct 2009 07:53:06 GMT</pubDate></item><item><title>Rafal commented on NHProf in the real world: NHibernate Search integration</title><description>But... wait a moment... isn't it a SOFT DELETE what we have here? 
</description><link>http://ayende.com/4243/nhprof-in-the-real-world-nhibernate-search-integration#comment2</link><guid>http://ayende.com/4243/nhprof-in-the-real-world-nhibernate-search-integration#comment2</guid><pubDate>Mon, 12 Oct 2009 07:26:06 GMT</pubDate></item><item><title>Rafal commented on NHProf in the real world: NHibernate Search integration</title><description>Ah, nice trap for SQL-thinkers
</description><link>http://ayende.com/4243/nhprof-in-the-real-world-nhibernate-search-integration#comment1</link><guid>http://ayende.com/4243/nhprof-in-the-real-world-nhibernate-search-integration#comment1</guid><pubDate>Mon, 12 Oct 2009 07:24:29 GMT</pubDate></item></channel></rss>