﻿<?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 RavenDB Awesome Feature of the Day, Formatted Indexes</title><description>Daniel,
Thanks, looks awesome.
I wonder if there is a good way to get this without bringing the full parser in.
</description><link>http://ayende.com/157761/ravendb-awesome-feature-of-the-day-formatted-indexes#comment13</link><guid>http://ayende.com/157761/ravendb-awesome-feature-of-the-day-formatted-indexes#comment13</guid><pubDate>Tue, 21 Aug 2012 17:07:25 GMT</pubDate></item><item><title>Matt Johnson commented on RavenDB Awesome Feature of the Day, Formatted Indexes</title><description>Thanks for the clarification on the search index.  I actually have several places in my app where this technique will be useful.  Thanks.</description><link>http://ayende.com/157761/ravendb-awesome-feature-of-the-day-formatted-indexes#comment12</link><guid>http://ayende.com/157761/ravendb-awesome-feature-of-the-day-formatted-indexes#comment12</guid><pubDate>Tue, 21 Aug 2012 14:20:40 GMT</pubDate></item><item><title>Daniel Grunwald commented on RavenDB Awesome Feature of the Day, Formatted Indexes</title><description>I've extracted the query expression decompiler logic into a standalone program: https://gist.github.com/3414523

It might be a bit too aggressive though, sometimes it would be more readable to keep the lambdas around.</description><link>http://ayende.com/157761/ravendb-awesome-feature-of-the-day-formatted-indexes#comment11</link><guid>http://ayende.com/157761/ravendb-awesome-feature-of-the-day-formatted-indexes#comment11</guid><pubDate>Tue, 21 Aug 2012 11:03:31 GMT</pubDate></item><item><title>Ayende Rahien commented on RavenDB Awesome Feature of the Day, Formatted Indexes</title><description>Matt,
Thanks, typo fixed.

Regarding the results, RavenDB has indexing model &amp; query model, they don't have to quite match from types perspective, because we do a lot of funcy stuff.

This index is explained here: http://ayende.com/blog/152833/orders-search-in-ravendb</description><link>http://ayende.com/157761/ravendb-awesome-feature-of-the-day-formatted-indexes#comment10</link><guid>http://ayende.com/157761/ravendb-awesome-feature-of-the-day-formatted-indexes#comment10</guid><pubDate>Tue, 21 Aug 2012 10:28:32 GMT</pubDate></item><item><title>Ayende Rahien commented on RavenDB Awesome Feature of the Day, Formatted Indexes</title><description>Daniel,
We already have a dependency on NRefactory, although on the server, and not on the client, which is where this code is runnig.
Any reference for how to use those two?</description><link>http://ayende.com/157761/ravendb-awesome-feature-of-the-day-formatted-indexes#comment9</link><guid>http://ayende.com/157761/ravendb-awesome-feature-of-the-day-formatted-indexes#comment9</guid><pubDate>Tue, 21 Aug 2012 10:26:25 GMT</pubDate></item><item><title>Ayende Rahien commented on RavenDB Awesome Feature of the Day, Formatted Indexes</title><description>configurator,

1) Will be done.
2) Cannot really work. What happen if you already use x or y in your lambdas already? this0 it much less likely
</description><link>http://ayende.com/157761/ravendb-awesome-feature-of-the-day-formatted-indexes#comment8</link><guid>http://ayende.com/157761/ravendb-awesome-feature-of-the-day-formatted-indexes#comment8</guid><pubDate>Tue, 21 Aug 2012 10:21:01 GMT</pubDate></item><item><title>Ayende Rahien commented on RavenDB Awesome Feature of the Day, Formatted Indexes</title><description>Roy,
Good idea, I'll see if that can be made to work.</description><link>http://ayende.com/157761/ravendb-awesome-feature-of-the-day-formatted-indexes#comment7</link><guid>http://ayende.com/157761/ravendb-awesome-feature-of-the-day-formatted-indexes#comment7</guid><pubDate>Tue, 21 Aug 2012 10:20:15 GMT</pubDate></item><item><title>Matt Warren commented on RavenDB Awesome Feature of the Day, Formatted Indexes</title><description>@Matt 

That index is from this blog post http://ayende.com/blog/152833/orders-search-in-ravendb. 

And yes, the idea is that you can search across several fields at the same time.

Also it's not a Map/Reduce query, it's just using ReduceResult as the type for the shape of the Map output.</description><link>http://ayende.com/157761/ravendb-awesome-feature-of-the-day-formatted-indexes#comment6</link><guid>http://ayende.com/157761/ravendb-awesome-feature-of-the-day-formatted-indexes#comment6</guid><pubDate>Fri, 17 Aug 2012 16:23:17 GMT</pubDate></item><item><title>Matt Johnson commented on RavenDB Awesome Feature of the Day, Formatted Indexes</title><description>"Then I had an affiany."
I believe the word you wanted was "epiphany"

One thing I don't quite get: In the reduce result, you specify Query as a string, but in the mapping it's clearly an array of objects.  I thought that these had to match?

Also (to repeat one of your favorite lines) - What are you actually trying to do here?  If this is just an index of all of those properties, why do you need the array of objects at all?

If I was to guess, it looks like the index is such that you can search across all of these fields at the same time?  If so, is this the recommended approach, and is it written up somewhere that I can't seem to find?</description><link>http://ayende.com/157761/ravendb-awesome-feature-of-the-day-formatted-indexes#comment5</link><guid>http://ayende.com/157761/ravendb-awesome-feature-of-the-day-formatted-indexes#comment5</guid><pubDate>Fri, 17 Aug 2012 15:36:23 GMT</pubDate></item><item><title>Mariolino commented on RavenDB Awesome Feature of the Day, Formatted Indexes</title><description>Hi,

broken url... I can't see the url

http://ayende.com/blog/157665/data-virtualization-lazy-loading-stealth-pagingndash-whatever-you-want-to-call-it-herersquo-s-how-to-do-it-in-silverlight?key=f69eddad-8e64-4363-94ac-2da433d52515&amp;utm_source=feedburner&amp;utm_medium=feed&amp;utm_campaign=Feed%3A+AyendeRahien+%28Ayende+%40+Rahien%29

</description><link>http://ayende.com/157761/ravendb-awesome-feature-of-the-day-formatted-indexes#comment4</link><guid>http://ayende.com/157761/ravendb-awesome-feature-of-the-day-formatted-indexes#comment4</guid><pubDate>Fri, 17 Aug 2012 14:44:01 GMT</pubDate></item><item><title>Daniel Grunwald commented on RavenDB Awesome Feature of the Day, Formatted Indexes</title><description>You could also use the code from ILSpy that transforms C# LINQ calls back into query expressions. (IntroduceQueryExpressions and CombineQueryExpressions transforms)
Those two are purely syntactic transformations, they don't consume any additional information from previous decompiler stages.

Although pulling in a full-blown C# parser as a dependency might be overkill for this problem :)</description><link>http://ayende.com/157761/ravendb-awesome-feature-of-the-day-formatted-indexes#comment3</link><guid>http://ayende.com/157761/ravendb-awesome-feature-of-the-day-formatted-indexes#comment3</guid><pubDate>Fri, 17 Aug 2012 11:15:44 GMT</pubDate></item><item><title>configurator commented on RavenDB Awesome Feature of the Day, Formatted Indexes</title><description>There are two changes I would make:

1. Substitute C# type aliases where appropriate. This isn't hard, and just needs a hard-coded list of the 15-or-so aliases that exist. (I wouldn't leave out the "System." or any other namespaci n other types, myself).
2. Use 'x', 'y' and 'z' instead of this0 (and presumably this1 and this2) - once you run out of those three - which I'm guessing you won't in 95% of cases - you can use an identifier with a number like this0 or x0. But using xyz first would make the entire thing a bit more readable.

All in all, this is an awesome feature.</description><link>http://ayende.com/157761/ravendb-awesome-feature-of-the-day-formatted-indexes#comment2</link><guid>http://ayende.com/157761/ravendb-awesome-feature-of-the-day-formatted-indexes#comment2</guid><pubDate>Fri, 17 Aug 2012 09:58:54 GMT</pubDate></item><item><title>Roy commented on RavenDB Awesome Feature of the Day, Formatted Indexes</title><description>Nice! Perhaps you could even leave out the "System." prefixes and "System.Object" altogether?</description><link>http://ayende.com/157761/ravendb-awesome-feature-of-the-day-formatted-indexes#comment1</link><guid>http://ayende.com/157761/ravendb-awesome-feature-of-the-day-formatted-indexes#comment1</guid><pubDate>Fri, 17 Aug 2012 09:25:28 GMT</pubDate></item></channel></rss>