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
seaching document with null field not retrieved
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
  Messages 26 - 28 of 28 - Collapse all  -  Translate all to Translated (View all originals) < Older 
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
 
Oren Eini (Ayende Rahien)  
View profile  
 More options May 6 2012, 8:25 am
From: "Oren Eini (Ayende Rahien)" <aye...@ayende.com>
Date: Sun, 6 May 2012 15:25:53 +0300
Local: Sun, May 6 2012 8:25 am
Subject: Re: [RavenDB] seaching document with null field not retrieved

Wallace, the issue is the structure of your documents.
Take a look at this, the document that you are loading:

{
  "Address": "21 Weelara Road, City Beach, WA 6015",
  "Price": "$3,600,000",
  "Url": "/property-house-wa-city+beach-108137341",
  "SiteId": "t108137341",
  "Source": "rea",
  "CreatedOn": "2012-04-05T13:52:43.0000000Z",
  "LastUpdated": "2012-04-11T11:03:57.0000000Z",
  "LastModified": "2012-04-05T13:52:43.0000000Z",
  "PriceHistories": [
    {
      "ChangeDate": "2012-04-05T13:52:43.0000000Z",
      "Value": "$3,600,000",
      "Notes": ""
    }
  ],
  "Suburb": "city beach"

}

Note that it doesn't HAVE a State property. Because it doesn't have a state
property (vs. having it and it being null), you can't query on that.

On Sat, May 5, 2012 at 3:13 PM, Wallace Turner <wallacetur...@gmail.com>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.
Wallace Turner  
View profile  
 More options May 6 2012, 7:49 pm
From: Wallace Turner <wallacetur...@gmail.com>
Date: Mon, 07 May 2012 07:49:25 +0800
Local: Sun, May 6 2012 7:49 pm
Subject: Re: [RavenDB] seaching document with null field not retrieved

 >Note that it doesn't HAVE a State property. Because it doesn't have a
state property (vs. having it and it being null), you can't query on that.

Right, I re-generated the index - does the index simply exclude the
document as it doesnt have a State property? I'm curious how it would
distinguish between a document that has a NULL state and one that doesnt
have a state property at all. (keeping in mind that from C# both these
documents appear the same)

What is the recommended approach to resolving issues like this, ie data
migration where the domain model changes? As a brute force approach it
seems I have to fetch all the objects then Save( ) them back to simply
populate the null field.

On 6/05/2012 8:25 PM, Oren Eini (Ayende Rahien) 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 May 7 2012, 12:15 am
From: "Oren Eini (Ayende Rahien)" <aye...@ayende.com>
Date: Mon, 7 May 2012 07:15:35 +0300
Local: Mon, May 7 2012 12:15 am
Subject: Re: [RavenDB] seaching document with null field not retrieved

Wallace,
Regenerating the index won't do much, the data on the database isn't the
same.
And the shape of the C# class is meaningless on the server.

You can either use UpdateByIndex or the brute force way

On Mon, May 7, 2012 at 2:49 AM, Wallace Turner <wallacetur...@gmail.com>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.
End of messages < Older 
« Back to Discussions « Newer topic     Older topic »