[ https://issues.apache.org/jira/browse/SOLR-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12503256 ]
ms commented on SOLR-205: ------------------------- I am having difficulty using SolrSharp in a VB.NET project. I am using .NET 2.0 uncer Windows Vista (VS 2005). The problem is that the document does not pass "IsValidUpdateIndexDocument' -------------------------------------------------------------- I create a SolrSharp document thus: Imports System.Xml.Serialization Imports org.apache.solr.SolrSharp.Indexing <Serializable(), XmlRoot("add")> _ Public Class SolrDocument Inherits UpdateIndexDocument Public Sub New() End Sub Public Sub New(ByVal id As String, ByVal Diagnosis As String) Me.Add(New IndexFieldValue("id", id)) Me.Add(New IndexFieldValue("Diagnosis", Diagnosis)) End Sub End Class Then I try to post it like this: Dim solrSearcher As SolrSharp.Configuration.SolrSearcher _ = SolrSharp.Configuration.SolrSearchers.GetSearcher(SolrSharp.Configuration.Mode.Read) Dim SolrU As New org.apache.solr.SolrSharp.Update.SolrUpdater(solrSearcher) Dim doc As New SolrDocument(txtID.Text, txtDiagnosis.Text) If Not solrSearcher.SolrSchema.IsValidUpdateIndexDocument(doc) Then MessageBox.Show("Cannot validate document: ") Try SolrU.PostToIndex(doc, True) Catch ex As Exception MessageBox.Show(ex.ToString) End Try > SolrSharp - a C# client API for Solr > ------------------------------------ > > Key: SOLR-205 > URL: https://issues.apache.org/jira/browse/SOLR-205 > Project: Solr > Issue Type: New Feature > Environment: Microsoft Windows, .Net Framework 2.0 > Reporter: Jeff Rodenburg > Priority: Minor > Attachments: solrsharp_0.1.zip, solrsharp_0.1.zip > > > SolrSharp is a client API written in C# using the .Net framework to interact > with Apache Solr. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.