Re: Token Counter

2011-01-10 Thread Sasank Mudunuri
Faceting will do this for you. Check out: http://wiki.apache.org/solr/SimpleFacetParameters#facet.field This param allows you to specify a field which should be treated as a facet. > It will iterate over each Term in the field and generate a facet count using > that Term as the constraint. > > For

Re: Return Lucene DocId in Solr Results

2010-12-01 Thread Sasank Mudunuri
Take this with a sizeable grain of salt as I haven't actually tried doing this. But you might try using an IndexReader which it looks like you can get from this class: http://lucene.apache.org/solr/api/org/apache/solr/core/StandardIndexReaderFactory.html sasank On Tue, Nov 30, 2010 at 6:45 AM, L

Reading Solr Index directly

2010-11-17 Thread Sasank Mudunuri
Hi, I've been poking around the JavaDocs a bit, and it looks like it's possible to directly read the index using the Solr Java API. Hoping to clarify a couple of things -- 1) Do I need to read the index with Solr APIs, or can I use Lucene (PyLucene is particularly attractive...)? If so, how wary

Re: Highlighter - multiple instances of term being combined

2010-11-10 Thread Sasank Mudunuri
get you there. > > But to be frank- highlighting is a tough problem and has always had a > lot of edge cases. > > On Tue, Nov 9, 2010 at 6:08 PM, Sasank Mudunuri wrote: > > I'm finding that if a keyword appears in a field multiple times very > close > > tog

Highlighter - multiple instances of term being combined

2010-11-09 Thread Sasank Mudunuri
I'm finding that if a keyword appears in a field multiple times very close together, it will get highlighted as a phrase even though there are other terms between the two instances. So this search: http://localhost:8983/solr/select/? hl=true& hl.snippets=1& q=residue& hl.fragsize=0& mergeContiguo

Re: Searching for Documents by Indexed Term

2010-10-20 Thread Sasank Mudunuri
waste time by > thinking I'm an authority on this one. See: > > http://lucene.apache.org/solr/api/org/apache/solr/search/RawQParserPlugin.html > > and > http://wiki.apache.org/solr/SolrQuerySyntax > (this last under "built in query parsers"). > > HTH > Eri

Searching for Documents by Indexed Term

2010-10-20 Thread Sasank Mudunuri
Hi Solr Users, I used the TermsComponent to walk through all the indexed terms and find ones of particular interest (named entities). And now, I'd like to search for documents that contain these particular entities. I have both query-time and index-time stemming set for the field, which means I ca