Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Raven server indexes booleans upper-case, but the client queries them lower-case
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Lars Corneliussen  
View profile  
 More options Jun 9 2012, 7:41 am
From: Lars Corneliussen <m...@lcorneliussen.de>
Date: Sat, 9 Jun 2012 04:41:36 -0700 (PDT)
Local: Sat, Jun 9 2012 7:41 am
Subject: Raven server indexes booleans upper-case, but the client queries them lower-case

When indexing boolean fields, "Terms" lists "False" and "False", but the
client api generates field:true or field:false when using Query with
expressions.
Workarround is to store boolean fields Analyzed - but that doesn't make to
much sense...

Using build 701; is this fixed in never versions?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oren Eini (Ayende Rahien)  
View profile  
 More options Jun 9 2012, 7:54 am
From: "Oren Eini (Ayende Rahien)" <aye...@ayende.com>
Date: Sat, 9 Jun 2012 14:54:00 +0300
Subject: Re: [RavenDB] Raven server indexes booleans upper-case, but the client queries them lower-case

Are you using a custom index?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lars Corneliussen  
View profile  
 More options Jun 9 2012, 9:40 am
From: Lars Corneliussen <m...@lcorneliussen.de>
Date: Sat, 9 Jun 2012 06:40:06 -0700 (PDT)
Local: Sat, Jun 9 2012 9:40 am
Subject: Re: [RavenDB] Raven server indexes booleans upper-case, but the client queries them lower-case

Yes.

AddMap<Xyz>(
                fs => from h in fs
                      select new Result
                             {
                                 Bool = h.Transactions.Any()
                             });

var load = s.Query<Index.Result, Index>()
                    .Where(d => !d.Bool)
                    .AsProjection<Index.Result>();

_
Lars


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oren Eini (Ayende Rahien)  
View profile  
 More options Jun 9 2012, 10:19 am
From: "Oren Eini (Ayende Rahien)" <aye...@ayende.com>
Date: Sat, 9 Jun 2012 17:19:30 +0300
Local: Sat, Jun 9 2012 10:19 am
Subject: Re: [RavenDB] Raven server indexes booleans upper-case, but the client queries them lower-case

This is strange, can you show the full index def?

On Sat, Jun 9, 2012 at 4:40 PM, Lars Corneliussen <m...@lcorneliussen.de>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lars Corneliussen  
View profile  
 More options Jun 10 2012, 1:44 pm
From: Lars Corneliussen <m...@lcorneliussen.de>
Date: Sun, 10 Jun 2012 10:44:05 -0700 (PDT)
Local: Sun, Jun 10 2012 1:44 pm
Subject: Re: [RavenDB] Raven server indexes booleans upper-case, but the client queries them lower-case

Was about to write a huge mail with lots of code, but when trying to prove
the problem, the Terms suddenly showed "false" and "true", instead of
"False" and "True".
Some more testing showed that this depends on if the field is set as
analyzed or not. Analyzed -> lower-case, Not Analyzed -> upper case

But IMHO boolean fields should be indexed unanalyzed, as i do not want to
find things with "t" or tr"... But I might be wrong.

Still want the code?

_
Lars


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oren Eini (Ayende Rahien)  
View profile  
 More options Jun 11 2012, 1:22 am
From: "Oren Eini (Ayende Rahien)" <aye...@ayende.com>
Date: Mon, 11 Jun 2012 08:22:53 +0300
Local: Mon, Jun 11 2012 1:22 am
Subject: Re: [RavenDB] Raven server indexes booleans upper-case, but the client queries them lower-case

No, if this is the case, than that is by design.
There is a difference between how we index things in the different modes.
For boolean fields, you are better off sticking with the Default, instead
of messing with it.

On Sun, Jun 10, 2012 at 8:44 PM, Lars Corneliussen <m...@lcorneliussen.de>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oren Eini (Ayende Rahien)  
View profile  
 More options Jun 13 2012, 12:07 am
From: "Oren Eini (Ayende Rahien)" <aye...@ayende.com>
Date: Wed, 13 Jun 2012 07:07:34 +0300
Local: Wed, Jun 13 2012 12:07 am
Subject: Re: [RavenDB] Raven server indexes booleans upper-case, but the client queries them lower-case

Are you using a custom index?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »