[jira] Commented: (SOLR-205) SolrSharp - a C# client API for Solr

2007-11-03 Thread Jeff Rodenburg (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12539966
 ] 

Jeff Rodenburg commented on SOLR-205:
-

Great patch, thanks Tomer.  I just looked through the patch, here are a few 
comments:

- SolrType.cs/TypeExpression(...): replace the if/else lookup scheme for type 
mappings with a static type Dictionary for lookups.
The typemap lookup is much cleaner than the if/else sequence.  Shorter code, of 
which I'm a fan.  Nice optimization, thanks.

- QueryBuilder.cs: add public constructors that take a SolrSearcher instance.  
There are 6 or 7 constructors, and they would all be extended with an 
additional SolrSearcher instance.

I'm unsure about the best way to go about freely associating SolrSearcher 
instances with QueryBuilder instances, outside of configuration control.  
QueryBuilder implies searchability against a solr server, while the given 
client configuration may make that server update-only (the SearcherMode 
property on SolrSearcher.)  The idea behind the configuration settings for 
servers (Read/Write settings) is to ensure updates and queries occur in the 
right places.  At a minimum, there should be a check on the SolrSearcher 
instance passed to a QueryBuilder constructor that ensures the SearcherMode 
supports Read.

Another matter is encapsulation around the SolrSearcher instance and its query 
path.  Referring to http://wiki.apache.org/solr/SolrRequestHandler, the 
"select/" path for queries will technically work but also can short-circuit 
defined handlers already defined on a solr server.  The SolrSearcher instance 
should respect the server configuration on the solr instance.  This is not 
currently in place in the solrsharp code, but is something that we should add.  
This involves wiring up Request Handlers, which haven't been done yet.

My thoughts on this patch:
1) Apply the change to SolrType.TypeExpression(...)
2) Apply the constructor changes to QueryBuilder, but modify them to 
incorporate checking on SearcherMode properties in the constructor.
3) Begin evaluation of strongly-typed Request Handlers to control the 
SolrSearcher Url property.

> 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
>  Components: clients - C#
> Environment: Microsoft Windows, .Net Framework 2.0
>Reporter: Jeff Rodenburg
>Assignee: Jeff Rodenburg
>Priority: Minor
> Attachments: patch, solrsharp-1.2-08302007.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.



[jira] Commented: (SOLR-205) SolrSharp - a C# client API for Solr

2007-10-29 Thread Tomer Gabel (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12538471
 ] 

Tomer Gabel commented on SOLR-205:
--

The following small patch (generated with diff, sorry about the format if not 
appropriate) has the following features:
* Switch to a (IMO...) tidier type mapping system with a static dictionary 
instead of an if statement hierarchy
* Adds missing type mappings (long, unsigned types etc.) -- note the warning 
about small (less than 32 bit) data types!
* Adds constructor overloads for abstract QueryBuilder that accept SolrSearcher 
instead of reading from configuration (we prefer to integrate with our own 
configuration provider)

I don't know if this is the accepted way of submitting patches, if so please 
let me know and I'll submit again if necessary.


diff -x .svn -x docs -x bin -x obj -x *.XML -x *.xml -r 
.\src\Configuration\Schema\SolrType.cs 
..\..\semingo\dev\luceneint\search\Dependencies\SolrSharp\src\Configuration\Schema\SolrType.cs
19d18
< using System.Text;
30a30,61
> protected static readonly Dictionary typeMap;
> 
> /// 
> /// Initializes the type map
> /// 
> static SolrType()
> {
> typeMap = new Dictionary();
> typeMap.Add( typeof( string   ), "str"   );
> typeMap.Add( typeof( int  ), "int"   );
> typeMap.Add( typeof( DateTime ), "date"  );
> typeMap.Add( typeof( float), "float" );
> typeMap.Add( typeof( bool ), "bool"  );
> typeMap.Add( typeof( long ), "long"  );
> 
> // As Java doesn't recognize unsigned types, they are marshalled 
> as 
> // signed types.
> typeMap.Add( typeof( uint ), "int"   );
> typeMap.Add( typeof( ulong), "long"  );
> 
> // (s)byte and (u)short aren't recognized by Solr, and are 
> therefore
> // considered integers; users are cautioned that if such fields 
> are
> // long-typed in the Solr schema they will not be found when 
> parsing
> // the result XML. Additionally, overflow erros may result in
> // exceptions, so choose your types wisely!
> typeMap.Add( typeof( sbyte), "int" );
> typeMap.Add( typeof( byte ), "int" );
> typeMap.Add( typeof( short), "int" );
> typeMap.Add( typeof( ushort   ), "int" );
> }
> 
> 
39,60c70
< if (type == typeof(string))
< {
< return "str";
< }
< if (type == typeof(int))
< {
< return "int";
< }
< if (type == typeof(DateTime))
< {
< return "date";
< }
< if (type == typeof(float))
< {
< return "float";
< }
< if (type == typeof(bool))
< {
< return "bool";
< }
< if (type.IsArray)
< {
---
> if ( type.IsArray )
61a72,77
> else
> {
> string descriptor;
> if ( !typeMap.TryGetValue( type, out descriptor ) )
> throw new InvalidOperationException( "Unrecognized type " 
> + type + "!" );
> return descriptor;
63d78
< return null;
diff -x .svn -x docs -x bin -x obj -x *.XML -x *.xml -r 
.\src\Query\QueryBuilder.cs 
..\..\semingo\dev\luceneint\search\Dependencies\SolrSharp\src\Query\QueryBuilder.cs
17d16
< using System;
19,20d17
< using System.Text;
< using System.Web;
22d18
< using org.apache.solr.SolrSharp.Query.Parameters;
23a20
> using org.apache.solr.SolrSharp.Query.Parameters;
87a85,99
> /// Constructs an empty, default  object 
> with the
> /// specified  object.
> /// 
> /// The solrsearcher.
> public QueryBuilder( SolrSearcher solrsearcher )
> {
> _solrsearcher = solrsearcher;
> 
> if ( this._solrsearcher != null )
> {
> this.SOLR_SEARCH = this._solrsearcher.SOLR + "select/";
> }
> }
> 
> /// 
92a105
> : this( SolrSearchers.GetSearcher( Mode.Read ) )
94,99d106
< this._solrsearcher = SolrSearchers.GetSearcher(Mode.Read);
< 
< if (this._solrsearcher != null)
< {
< this.SOLR_SEARCH = this._solrsearcher.SOLR + "select/";
< }
113a121,133
> /// Constucts an empty, default QueryBuilder object with the specified
> /// , and adds the Page parameter.
> /// 
> /// integer to be used as the Page 
> parameter
> /// The  
> instance for
> /// this QueryBuilder.
> public QueryBuilder( SolrSearcher solrsearcher, int page )
> : this( solrsearcher )
> 

[jira] Commented: (SOLR-205) SolrSharp - a C# client API for Solr

2007-08-08 Thread Jeff Rodenburg (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12518468
 ] 

Jeff Rodenburg commented on SOLR-205:
-

Apologies for the delay in the response, occupied with starting a new venture.

First, IsValidUpdateIndexDocument is *not* a required call to update a solr 
index.  It is intended to be a runtime check for a document's structure, 
possibly more useful when added an nunit test routine than being called in 
production.  Nonetheless, it should still be applicable in this scenario.

On testing with the dynamic field scenario, I've not been able to reproduce the 
issue.  I'm continuing with that to see if I can determine if there's a 
scenario that solrsharp should be handling vs. an issue with solr.

> 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
>  Components: clients - C#
> Environment: Microsoft Windows, .Net Framework 2.0
>Reporter: Jeff Rodenburg
>Assignee: Jeff Rodenburg
>Priority: Minor
> Attachments: solrsharp-1.2-07182007.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.



[jira] Commented: (SOLR-205) SolrSharp - a C# client API for Solr

2007-08-04 Thread ms (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517708
 ] 

ms commented on SOLR-205:
-

Jeff
Please let me know if you were able to get this to work.
The problem I have is that the the client using Solr# needs to supply a value 
to the declared field "demographics" - or ti will fail 
IsValidUpdateIndexDocument. 
A related problem that I am having is that if you add 2 or more dynamic fields 
("id_demo" and "somethingelse_demo") - there is no error message - but, using 
Luke I see that the document has not been added to the index. TIA

> 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
>  Components: clients - C#
> Environment: Microsoft Windows, .Net Framework 2.0
>Reporter: Jeff Rodenburg
>Assignee: Jeff Rodenburg
>Priority: Minor
> Attachments: solrsharp-1.2-07182007.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.



[jira] Commented: (SOLR-205) SolrSharp - a C# client API for Solr

2007-07-23 Thread Jeff Rodenburg (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12514672
 ] 

Jeff Rodenburg commented on SOLR-205:
-

> Consider the above example of

> if I now have

> then I must also have


Let me make sure I understand the scenario here:

- dynamic field = "*_demo"
- copy field source = "id_demo" (as captured by dynamic field), with dest = 
"demographics"

I'll test this scenario myself to see what occurs.

> 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
>  Components: clients - C#
> Environment: Microsoft Windows, .Net Framework 2.0
>Reporter: Jeff Rodenburg
>Assignee: Jeff Rodenburg
>Priority: Minor
> Attachments: solrsharp-1.2-07182007.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.



[jira] Commented: (SOLR-205) SolrSharp - a C# client API for Solr

2007-07-21 Thread ms (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12514460
 ] 

ms commented on SOLR-205:
-

Another possible bug - not sure if this is a bug with Solr# or Solr. To 
reproduce, create a dynamicField and copyField in schema like this




Now, add TWO fields to match your dynamic field using solr# - for example:

doc.Add("id_demo", "lorem")
doc.Add("sample_demo", "ipsum")

When I add this document to a new Index, I get a corrupted index.

> 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
>  Components: clients - C#
> Environment: Microsoft Windows, .Net Framework 2.0
>Reporter: Jeff Rodenburg
>Assignee: Jeff Rodenburg
>Priority: Minor
> Attachments: solrsharp-1.2-07182007.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.



[jira] Commented: (SOLR-205) SolrSharp - a C# client API for Solr

2007-07-21 Thread ms (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12514454
 ] 

ms commented on SOLR-205:
-

With solrsharp-1.2-07082007 I am able to use dynamicFields. However, I have a 
problem with copyFiels that reference dynamicFields.
Consider the above example of 
 
if I now have 

then I must also have 

Now, if I use Solr#, I have to have 
doc.Add("demographics", "")  
or it will fail IsValidUpdateIndexDocument. But this is causing the index to be 
corrupted. Also, this defeats the purpose of copyFields - which is a server 
side mechanism to aggregate fields. 
Could we have solr# raise IsValidUpdateIndexDocument = false only if the field 
has "Isrequired = true"? tia


> 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
>  Components: clients - C#
> Environment: Microsoft Windows, .Net Framework 2.0
>Reporter: Jeff Rodenburg
>Assignee: Jeff Rodenburg
>Priority: Minor
> Attachments: solrsharp-1.2-07182007.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.



[jira] Commented: (SOLR-205) SolrSharp - a C# client API for Solr

2007-07-16 Thread Jeff Rodenburg (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12512952
 ] 

Jeff Rodenburg commented on SOLR-205:
-

ms -

thank you for the repro.  yes, this is a bug (by lack of code.)  adding this as 
a ticket under the C# component area. a fix is already in the works, i plan to 
post soon.


> 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-1.2-07082007.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.



[jira] Commented: (SOLR-205) SolrSharp - a C# client API for Solr

2007-07-15 Thread ms (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12512834
 ] 

ms commented on SOLR-205:
-

I am using solrsharp-1.2-07082007 - I have a dynamicField declared in my 
schema.xml file as 

-but, if I try to add a field using my vb.net application 
doc.Add("id_demo", s)
where is a string value, the document does fails 
solrSearcher.SolrSchema.IsValidUpdateIndexDocument(doc)
MS

> 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-1.2-07082007.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.



[jira] Commented: (SOLR-205) SolrSharp - a C# client API for Solr

2007-06-15 Thread Jeff Rodenburg (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12505363
 ] 

Jeff Rodenburg commented on SOLR-205:
-

The Example application includes some code for delete by query, but it is 
commented out.  The particular code looks like:

//List listQP = new List();
//listQP.Add(new QueryParameter("id", "101"));
//QueryParameterCollection queryParameterCollection = new 
QueryParameterCollection("delete", listQP);
//Query query = new Query();
//query.AddQueryParameters(queryParameterCollection, 
ParameterJoin.AND);
//DeleteIndexDocument deleteIndexDocument = new 
DeleteIndexDocument(query);

DeleteIndexDocument deleteIndexDocument = new 
DeleteIndexDocument("101");
oUpdate.PostToIndex(deleteIndexDocument, true);

Uncomment those and comment out the single DeleteIndexDocument("101") line to 
execute a delete-by-query.

> 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
>
> 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.



[jira] Commented: (SOLR-205) SolrSharp - a C# client API for Solr

2007-06-15 Thread ms (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12505361
 ] 

ms commented on SOLR-205:
-

Jeff-  I will check the code at the link you provided. However, looking at the 
Examples, I do not see code sample for delete by query.  My intention is to 
delte all documents/range of documents prior to (partially) reb-uilding the 
index.

> 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
>
> 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.



[jira] Commented: (SOLR-205) SolrSharp - a C# client API for Solr

2007-06-15 Thread Jeff Rodenburg (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12505340
 ] 

Jeff Rodenburg commented on SOLR-205:
-

There was a bug in DeleteIndexDocument, which has been updated.  Deleting by 
query vs. unique key was not being handled properly.  The source at 
http://solrstuff.org/svn/solrsharp has been updated (documentation to updated 
later.)

ms - for your scenario, this issues a delete-by-id request using the xml syntax 
"*a*".  This is not the same as a delete-by-query, if 
that's the intention.  Please look at the example for code that shows how to 
delete by query.

> 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
>
> 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.



[jira] Commented: (SOLR-205) SolrSharp - a C# client API for Solr

2007-06-14 Thread ms (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12505054
 ] 

ms commented on SOLR-205:
-

Jeff,
Thanks. I have it working against Solr 1.2. I am trying to figure out how to 
delete a document from the index. This is the code I am using and it is not 
working. TIA

Dim SolrU As New 
org.apache.solr.SolrSharp.Update.SolrUpdater(solrSearcher)
Dim doc As New org.apache.solr.SolrSharp.Indexing.DeleteIndexDocument
doc.Id = "*a*"
SolrU.PostToIndex(doc, True)
SolrU.Optimize()

> 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
>
> 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.



[jira] Commented: (SOLR-205) SolrSharp - a C# client API for Solr

2007-06-13 Thread Jeff Rodenburg (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12504470
 ] 

Jeff Rodenburg commented on SOLR-205:
-

Solrsharp has been validated against the Solr 1.2 release.  Validation was made 
using the example application that's available with the Solrsharp code.

- The code has been moved to a new location and is now accessible via 
subversion.  Many thanks to Ryan McKinley for hosting the codebase.  You can 
find it at:

http://solrstuff.org/svn/solrsharp

- A new folder has been added: docs/api.  We have MSDN-style documentation to 
help explain the full library.  When you update from the repository, just point 
your browser to the local file at /docs/api/index.html.

> 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
>
> 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.



[jira] Commented: (SOLR-205) SolrSharp - a C# client API for Solr

2007-06-10 Thread Jeff Rodenburg (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12503260
 ] 

Jeff Rodenburg commented on SOLR-205:
-

Regarding ms IsValidUpdateIndexDocument issue:

IsValidUpdateIndexDocument compares the fields of the referenced IndexDocument 
to the fields as read from the Solr configuration for the Solr instance you're 
updating.  If the (non-copied) fields that are read from the solrconfig.xml 
file are not present in the list of fields from the IndexDocument, 
IsValidUpdateIndexDocument will fail.

In your example, you should have only two fields defined in solrconfig.xml of 
the solr instance you're updating.

> 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.



[jira] Commented: (SOLR-205) SolrSharp - a C# client API for Solr

2007-06-10 Thread Jeff Rodenburg (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12503259
 ] 

Jeff Rodenburg commented on SOLR-205:
-

I'm not seeing comments that I've added via email response displayed on this 
issue, so I'll add them manually.

Regarding question from Otis G. about repository access and 1.2 compliance:
- I can't confirm right now (other project keeping me from this at the 
present.)  On evaluation it doesn't appear that there are any breaking changes 
at this point, other than Lucene query syntax requiring a change for field 
values with semi-colons.  However, there are new features in both this release 
as well as 1.1 that have not been incorporated into the library (defaults used 
as opposed to allowing choices where those exist.)  I will update JIRA with a 
confirmation indicating the library is 1.2 compliant.
- Repository access has been requested.

> 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.



Re: [jira] Commented: (SOLR-205) SolrSharp - a C# client API for Solr

2007-06-10 Thread Jeff Rodenburg

IsValidUpdateIndexDocument compares the fields of the referenced
IndexDocument to the fields as read from the Solr configuration for the Solr
instance you're updating.  If the (non-copied) fields that are read from the
solrconfig.xml file are not present in the list of fields from the
IndexDocument, IsValidUpdateIndexDocument will fail.

In your example, you should have only two fields defined in
solrconfig.xmlof the solr instance you're updating.

On 6/10/07, ms (JIRA) <[EMAIL PROTECTED]> wrote:



[
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

 _
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.




[jira] Commented: (SOLR-205) SolrSharp - a C# client API for Solr

2007-06-10 Thread ms (JIRA)

[ 
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

 _
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.



Re: [jira] Commented: (SOLR-205) SolrSharp - a C# client API for Solr

2007-06-07 Thread Jeff Rodenburg

Good question, one that I can't confirm right now (other project keeping me
from this at the present.)  On evaluation it doesn't appear that there are
any breaking changes at this point, other than Lucene query syntax requiring
a change for field values with semi-colons.

However, there are new features in both this release as well as 1.1 that
have not been incorporated into the library (defaults used as opposed to
allowing choices where those exist.)

I will update JIRA with a confirmation indicating the library is 1.2compliant.

On 6/7/07, Otis Gospodnetic (JIRA) <[EMAIL PROTECTED]> wrote:



[
https://issues.apache.org/jira/browse/SOLR-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12502354]

Otis Gospodnetic commented on SOLR-205:
---

Jeff & Co:
What is the status of this as far as getting it into the repository?
Something to do right after 1.2 is fully released?

It's still in sync with 1.2 codebase and works, right Jeff?


> 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.




[jira] Commented: (SOLR-205) SolrSharp - a C# client API for Solr

2007-06-07 Thread Otis Gospodnetic (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12502354
 ] 

Otis Gospodnetic commented on SOLR-205:
---

Jeff & Co:
What is the status of this as far as getting it into the repository?
Something to do right after 1.2 is fully released?

It's still in sync with 1.2 codebase and works, right Jeff?


> 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.



[jira] Commented: (SOLR-205) SolrSharp - a C# client API for Solr

2007-04-06 Thread Jeff Rodenburg (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12487254
 ] 

Jeff Rodenburg commented on SOLR-205:
-

This library and project consists of a few different chunks:

/src - the source code for the library.
/docs/api - MSDN-style documentation for the library (the MS world equivalent 
of javadoc).
/example - working examples for the library.

The namespace for the source code is "org.apache.solr.SolrSharp"

Are there any documentation requirements for Apache compliance?

One administrative note: I have a signed agreement on file with the Apache 
Foundation for code contributions, indemnification of my employer, etc.  This 
is the standard doc that's required for all committers (I have committer status 
on the Lucene.Net project).  I assume this applies for any Apache project.

> 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
>
> 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.