RE: Building a facet query in SolrJ

2011-08-11 Thread Simon, Richard T
Thanks! I actually found a page on line that explained this. -Rich -Original Message- From: Chris Hostetter [mailto:hossman_luc...@fucit.org] Sent: Wednesday, August 10, 2011 4:01 PM To: solr-user@lucene.apache.org Cc: Simon, Richard T Subject: RE: Building a facet query in SolrJ

Building a facet query in SolrJ

2011-08-10 Thread Simon, Richard T
Hi - I'm trying to do a (I think) simple facet query, but I'm not getting the results I expect. I have a field, MyField, and I want to get facets for specific values of that field. That is, I want a FacetField if MyField is ABC, DEF, etc. (a specific list of values), but not if MyField is any

RE: Building a facet query in SolrJ

2011-08-10 Thread Simon, Richard T
Oops. I think I found it. My desiredFieldValues list has the wrong info. Knew there was something simple wrong. From: Simon, Richard T Sent: Wednesday, August 10, 2011 10:55 AM To: solr-user@lucene.apache.org Cc: Simon, Richard T Subject: Building a facet query in SolrJ Hi - I'm trying to do

RE: Building a facet query in SolrJ

2011-08-10 Thread Simon, Richard T
. Can anyone help here? Thanks. From: Simon, Richard T Sent: Wednesday, August 10, 2011 11:07 AM To: Simon, Richard T; solr-user@lucene.apache.org Subject: RE: Building a facet query in SolrJ Oops. I think I found it. My desiredFieldValues list has the wrong info. Knew there was something

RE: Building a facet query in SolrJ

2011-08-10 Thread Simon, Richard T
the values of each URI facet query in that list anyway. Erik On Aug 10, 2011, at 13:42 , Simon, Richard T wrote: I take it back. I didn't find it. I corrected my values and the facet queries still don't find what I want. The values I'm looking for are URIs, so they look like: http

Highlighting map use unique key field?

2011-06-20 Thread Simon, Richard T
Hi - A simple yes or no question, I think. I want to retrieve highlighting result from a QueryResponse. I know to use the following: MapString, MapString, ListString highlighting = resp.getHighlighting(); Most of the examples I've seen use the document uid to extract the results like so:

RE: getFieldValue always returns an ArrayList?

2011-06-16 Thread Simon, Richard T
not the problem. Arrrh, camel case may be striking again. Try multiValued, not multivalued If that's still not it, can we see the code? Best Erick On Wed, Jun 15, 2011 at 3:47 PM, Simon, Richard T richard_si...@hms.harvard.edu wrote: We rebuild the index from scratch each time we start

RE: getFieldValue always returns an ArrayList?

2011-06-16 Thread Simon, Richard T
. ### Field asserted_type_label is an instance of String. ### Field provider_uri is an instance of String. ### Field provider_label is an instance of String. -Rich -Original Message- From: Simon, Richard T Sent: Thursday, June 16, 2011 10:08 AM To: solr-user@lucene.apache.org Cc

RE: getFieldValue always returns an ArrayList?

2011-06-16 Thread Simon, Richard T
. -Rich -Original Message- From: Chris Hostetter [mailto:hossman_luc...@fucit.org] Sent: Thursday, June 16, 2011 2:18 PM To: solr-user@lucene.apache.org Cc: Simon, Richard T Subject: RE: getFieldValue always returns an ArrayList? : and all of a sudden I get Strings. But, doesn't

RE: getFieldValue always returns an ArrayList?

2011-06-16 Thread Simon, Richard T
Ah! That was the problem. The version was 1.0. I'll change it to 1.2. Thanks! -Rich -Original Message- From: Chris Hostetter [mailto:hossman_luc...@fucit.org] Sent: Thursday, June 16, 2011 2:33 PM To: Simon, Richard T Cc: solr-user@lucene.apache.org Subject: RE: getFieldValue always

getFieldValue always returns an ArrayList?

2011-06-15 Thread Simon, Richard T
Hi - I am examining a SolrDocument I retrieved through a query. The field I am looking at is declared this way in my schema: field name=uri type=string indexed=true stored=true multivalued=false required=true / I know multivalued defaults to false, but I set it explicitly because I'm seeing

RE: getFieldValue always returns an ArrayList?

2011-06-15 Thread Simon, Richard T
happen if part of your index has that field as a multi-valued field If that't not the problem, what version of solr are you using? I presume this is SolrJ? Best Erick On Wed, Jun 15, 2011 at 2:21 PM, Simon, Richard T richard_si...@hms.harvard.edu wrote: Hi - I am examining a SolrDocument I

Solr Newbie: Starting embedded server with multicore

2011-04-26 Thread Simon, Richard T
I'm just starting with Solr. I'm using Solr 3.1.0, and I want to use EmbeddedSolrServer with a multicore setup, even though I currently have only one core (various documents I read suggest starting that way even if you have one core, to get the better administrative tools supported by