﻿<?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>Ayende Rahien commented on Orders Search in RavenDB</title><description>Andres,
Please continue this in the mailing list.</description><link>http://ayende.com/152833/orders-search-in-ravendb#comment17</link><guid>http://ayende.com/152833/orders-search-in-ravendb#comment17</guid><pubDate>Tue, 17 Jan 2012 17:52:19 GMT</pubDate></item><item><title>Andres commented on Orders Search in RavenDB</title><description>`Indexes.Add(x =&gt; x.Query, FieldIndexing.Analyzed);` below `Map` in `Orders_Search` constructor is not working for me.</description><link>http://ayende.com/152833/orders-search-in-ravendb#comment16</link><guid>http://ayende.com/152833/orders-search-in-ravendb#comment16</guid><pubDate>Tue, 17 Jan 2012 12:30:26 GMT</pubDate></item><item><title>Andres commented on Orders Search in RavenDB</title><description>Thanks Oren, I understand now why Contains is not working as I used to think.

Could you help me and said me how to "enable full text search on the field and allow even more interesting searches"?

</description><link>http://ayende.com/152833/orders-search-in-ravendb#comment15</link><guid>http://ayende.com/152833/orders-search-in-ravendb#comment15</guid><pubDate>Tue, 17 Jan 2012 12:09:10 GMT</pubDate></item><item><title>Ayende Rahien commented on Orders Search in RavenDB</title><description>Andres,
This isn't the place for this, please ask in the mailing list.</description><link>http://ayende.com/152833/orders-search-in-ravendb#comment14</link><guid>http://ayende.com/152833/orders-search-in-ravendb#comment14</guid><pubDate>Sat, 14 Jan 2012 13:57:54 GMT</pubDate></item><item><title>Andres commented on Orders Search in RavenDB</title><description>Thanks for your answer.
Now I am having an issue with string.Contains:
session.Query&lt;OrdersSearch.ReduceResult, OrdersSearch&gt;() .Where(x=&gt;x.Query.Contains("foo")) .As() .ToList()
Generates:
Issuing query on index WorkerSearch/Search for: Query:"foo"
In place of
Query:"*foo*"</description><link>http://ayende.com/152833/orders-search-in-ravendb#comment13</link><guid>http://ayende.com/152833/orders-search-in-ravendb#comment13</guid><pubDate>Sat, 14 Jan 2012 13:49:41 GMT</pubDate></item><item><title>Ayende Rahien commented on Orders Search in RavenDB</title><description>Andres,
that is why we have the As call, it converts the linq queryable to the result type</description><link>http://ayende.com/152833/orders-search-in-ravendb#comment12</link><guid>http://ayende.com/152833/orders-search-in-ravendb#comment12</guid><pubDate>Tue, 10 Jan 2012 13:03:07 GMT</pubDate></item><item><title>Andres commented on Orders Search in RavenDB</title><description>The result type of 
session.Query&lt;OrdersSearch.ReduceResult, OrdersSearch&gt;() .Where(x=&gt;x.Query == "foo") .As()
.ToList(); 
is a List&lt;OrdersSearch.ReduceResult&gt;, right? 
and OrdersSearch.ReduceResult.Query type is is a string, right?
How do you get the fields to fill your UI table (Order Number, Quantity, ...)?
</description><link>http://ayende.com/152833/orders-search-in-ravendb#comment11</link><guid>http://ayende.com/152833/orders-search-in-ravendb#comment11</guid><pubDate>Tue, 10 Jan 2012 12:04:39 GMT</pubDate></item><item><title>Daniel Lang commented on Orders Search in RavenDB</title><description>I would not call it "ReduceResult" since there is not reduce operation in this index.</description><link>http://ayende.com/152833/orders-search-in-ravendb#comment10</link><guid>http://ayende.com/152833/orders-search-in-ravendb#comment10</guid><pubDate>Tue, 10 Jan 2012 03:54:29 GMT</pubDate></item><item><title>Ayende Rahien commented on Orders Search in RavenDB</title><description>Rafal,
Not really no. You don't _want_ to get that sort of this, your relevancy would be pretty low, and your indexes size pretty high.</description><link>http://ayende.com/152833/orders-search-in-ravendb#comment9</link><guid>http://ayende.com/152833/orders-search-in-ravendb#comment9</guid><pubDate>Mon, 09 Jan 2012 21:03:32 GMT</pubDate></item><item><title>Rafal commented on Orders Search in RavenDB</title><description>JSON is a text format. Just put that text into lucene index (analyzed/tokenized) and you'll have full document text search, working out of the box for every document type.
</description><link>http://ayende.com/152833/orders-search-in-ravendb#comment8</link><guid>http://ayende.com/152833/orders-search-in-ravendb#comment8</guid><pubDate>Mon, 09 Jan 2012 21:01:16 GMT</pubDate></item><item><title>wizzarding commented on Orders Search in RavenDB</title><description>Nice example. How does the date filtering work though? it looks like thats being dropped. Say you only want records where the last payment is between one date and another? Is that something you could add as a second query field??</description><link>http://ayende.com/152833/orders-search-in-ravendb#comment7</link><guid>http://ayende.com/152833/orders-search-in-ravendb#comment7</guid><pubDate>Mon, 09 Jan 2012 18:32:50 GMT</pubDate></item><item><title>Ayende Rahien commented on Orders Search in RavenDB</title><description>Rob,
In my example, if they search with the quotes, they won't find it. Without the quotes, they would</description><link>http://ayende.com/152833/orders-search-in-ravendb#comment6</link><guid>http://ayende.com/152833/orders-search-in-ravendb#comment6</guid><pubDate>Mon, 09 Jan 2012 16:57:56 GMT</pubDate></item><item><title>Ayende Rahien commented on Orders Search in RavenDB</title><description>Nic,
The array method is more efficient way of handily that, and it gives you better options for handling things</description><link>http://ayende.com/152833/orders-search-in-ravendb#comment5</link><guid>http://ayende.com/152833/orders-search-in-ravendb#comment5</guid><pubDate>Mon, 09 Jan 2012 16:57:08 GMT</pubDate></item><item><title>Ayende Rahien commented on Orders Search in RavenDB</title><description>Philip,

session.Query&lt;Orders_Search.ReduceResult, Orders_Search&gt;()
   .Where(x=&gt;x.Query == "foo")
   .As&lt;Order&gt;()  
   .ToList();</description><link>http://ayende.com/152833/orders-search-in-ravendb#comment4</link><guid>http://ayende.com/152833/orders-search-in-ravendb#comment4</guid><pubDate>Mon, 09 Jan 2012 16:56:15 GMT</pubDate></item><item><title>Nic Wise commented on Orders Search in RavenDB</title><description>I did the same for our product search, which also happens to have a lot of Japanese in it. Having read this, I'm going to revise it, but this is what I came up with:

from prod in docs.Products
let FullText = prod.ArtistName + " " + prod.ProductTitleJapanese + " " + prod.Label + "  " + prod.ParentLabel
select new { FullText }

And then did a full text index on FullText. Works great so far. Joy of having an engine like Lucene under the hood!</description><link>http://ayende.com/152833/orders-search-in-ravendb#comment3</link><guid>http://ayende.com/152833/orders-search-in-ravendb#comment3</guid><pubDate>Mon, 09 Jan 2012 11:04:40 GMT</pubDate></item><item><title>Rob commented on Orders Search in RavenDB</title><description>Nice, I'm just working on something similar.

In your example if someone searched for "Ayende Rahien" would they find anything, or would you need to add an additional field to the index?</description><link>http://ayende.com/152833/orders-search-in-ravendb#comment2</link><guid>http://ayende.com/152833/orders-search-in-ravendb#comment2</guid><pubDate>Mon, 09 Jan 2012 11:00:54 GMT</pubDate></item><item><title>Phillip commented on Orders Search in RavenDB</title><description>What I don't understand from this is how you would query this. :(</description><link>http://ayende.com/152833/orders-search-in-ravendb#comment1</link><guid>http://ayende.com/152833/orders-search-in-ravendb#comment1</guid><pubDate>Mon, 09 Jan 2012 10:52:38 GMT</pubDate></item></channel></rss>