public class SearchIndexData
{
[SolrField("myfield")]
public string MyField{ get; set; }
}
if I make a solrNet call like:
this.solrIndex.Add(new SearchIndexData() {MyField= null});
What does SolrNet actually send to solr to store?
1) field is not set in solr (IE: Queryable by: -myfield:[* TO *]
2) set to empty string "" Queryable by?
3) other?
And a solr specific question:
If we plan to have null fields in our indexed document, would it be
better performance to set these to a value like "-empty-" or "null"?
or does it matter? It would be ideal to query these fields with a
filter so that they are cached.
Any thoughts appreciated.
Thanks,
-Joe Freeman
Say we have a class that has a property like:
public class SearchIndexData
{
[SolrField("myfield")]
public string MyField{ get; set; }
}
if I make a solrNet call like:
this.solrIndex.Add(new SearchIndexData() {MyField= null});
What does SolrNet actually send to solr to store?
1) field is not set in solr (IE: Queryable by: -myfield:[* TO *]
2) set to empty string "" Queryable by?
3) other?
And a solr specific question:
If we plan to have null fields in our indexed document, would it be
better performance to set these to a value like "-empty-" or "null"?
or does it matter? It would be ideal to query these fields with a
filter so that they are cached.