Sounds good!  Thanks Jared!

Jeff
--
Jeff Schmidt
535 Consulting
jas@535consulting.com
http://www.535consulting.com

On Jan 25, 2014, at 11:20 AM, Jared Holmberg <notifications@github.com> wrote:

> In titan-solr/src/main/java/com/thinkaurelius/titan/diskstorage/solr/SolrIndex.java:
> 
> > +        } catch (SolrServerException e) {
> > +            log.error("Unable to query Solr index.", e);
> > +        }
> > +        return result;
> > +    }
> > +
> > +    @Override
> > +    public Iterable<RawQuery.Result<String>> query(RawQuery query, KeyInformation.IndexRetriever informations, TransactionHandle tx) throws StorageException {
> > +        List<RawQuery.Result<String>> result = new ArrayList<RawQuery.Result<String>>();
> > +        String core = query.getStore();
> > +        String keyIdField = keyFieldIds.get(core);
> > +        SolrServer solr = this.solrServers.get(core);
> > +        SolrQuery solrQuery = new SolrQuery();
> > +        solrQuery.setQuery("*:*");
> > +        solrQuery.addFilterQuery(query.getQuery());
> > +        solrQuery.addField("*");
> Hi Jeff, Good catch. As I was putting this together, I was learning Solr at the same time. Having another pair of eyes on this helps a lot. I have changed the code from : solrQuery.addField("*"); solrQuery.addField("score"); to: solrQuery.addField(keyIdField); solrQuery.addField("score"); It's been updated and pushed to github.
> …
> —
> Reply to this email directly or view it on GitHub.
>