lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Seltzer <>
Subject Re: What is the right way to list top terms for a given field?
Date Wed, 27 Nov 2013 17:07:45 GMT
It's certainly seems to be faster (in my limited testing).

I just don't want to base my software on the Luke scripts if they're
prone to changing in the future.

And yes, I realize there are ways to make this secure. I just wanted
to know if it's something I should avoid doing (perhaps for reasons
beyond my comprehension.)



> On Nov 27, 2013, at 11:46 AM, Stefan Matheis <> wrote:
> Since your users shouldn't be allowed at any time to access Solr directly, it's up to
you to implement that on the client side anyway?
> I can't tell if there is a technical difference between the two calls you named, but
i'd guess that the second might be a more direct way to access this information (and probably
a bit faster?).
> -Stefan
>> On Wednesday, November 27, 2013 at 5:22 PM, Dave Seltzer wrote:
>> Hello,
>> I'm trying to get a list of top terms for a field called "Tags".
>> One way to do this would be to query all data *:* and then facet by the
>> Tags column:
>> /solr/collection/admin/select?q=*:*&rows=0&facet=true&facet.field=Tags
>> I've noticed another way to do this is using the luke interface like this:
>> /solr/collection/admin/luke?fl=Tags&numTerms=20
>> One problem I see with the luke interface is that its inside the /admin/
>> path, which to me means that my users shouldn't be able to access it.
>> Whats the most SOLRy way to do this?
>> Thanks!
>> -D

View raw message