Erk, haven't used /luke in years. Apologies.

About that JS: does distributed search "do the right thing" when the 
distributed part is not implemented? Or does every script have to explicitly 
include distributed search support?

----- Original Message -----
| From: "Erik Hatcher" <erik.hatc...@gmail.com>
| To: solr-user@lucene.apache.org
| Sent: Saturday, October 27, 2012 4:14:12 AM
| Subject: Re: Get metadata for query
| 
| Lance Lance Lance.... :)  As the OP said, you can use /admin/luke to
| get all the fields (static and dynamic) used in the index.  I've
| used that trick to get a list of all *_facet dynamic fields to then
| have my UI (Blackight's first prototypes, aka Solr Flare) turn
| around and facet on them.  The request to /admin/luke was done once
| and cached.
| 
| But I think what Torben is going for is the
| "FieldsUsedUpdateProcessor" trick like
| <https://issues.apache.org/jira/browse/SOLR-1280>.
| 
| In Solr 4 there is a JavaScript update processor example, commented
| out, that will add a field to every document containing the names of
| the fields (constrained to the name pattern of attr_* in the
| example) for that document.  One can then use that to facet upon.
| 
| In Solr 4, it's here:
| 
<https://svn.apache.org/repos/asf/lucene/dev/tags/lucene_solr_4_0_0/solr/example/solr/collection1/conf/update-script.js>
| 
| Note, the field name in a comment in there is incorrect (I'll commit
| a fix), but if you used that update processor, you could then do a
| query and facet on field attribute_ss and across that result set see
| what fields are contained within it.  I've seen this trick employed
| at the Smithsonian first hand, where there are so many different
| attributes across the documents that it's hard to know what the best
| facets are for the result set.
| 
|       Erik
| 
| 
| On Oct 27, 2012, at 04:09 , Lance Norskog wrote:
| 
| > Nope! Each document comes back with its own list of stored fields.
| > If you want to find all fields in an index, you have to fetch
| > every last document and OR in the fields in that document. There
| > is no Solr call to get a full list of static or dynamic fields.
| > 
| > If you use lots of dynamic fields I can see how this would be
| > useful for pan-index tasks like assessing data quality.
| > 
| > ----- Original Message -----
| > | From: "Jack Krupansky" <j...@basetechnology.com>
| > | To: solr-user@lucene.apache.org
| > | Sent: Friday, October 26, 2012 7:41:58 PM
| > | Subject: Re: Get metadata for query
| > | 
| > | I'm not sure I understand the real question here. What is the
| > | "metadata".
| > | 
| > | I mean, q=x&fl=* gives you all the (stored) fields for documents
| > | matching
| > | the query.
| > | 
| > | What else is there?
| > | 
| > | -- Jack Krupansky
| > | 
| > | -----Original Message-----
| > | From: Lance Norskog
| > | Sent: Friday, October 26, 2012 9:42 PM
| > | To: solr-user@lucene.apache.org
| > | Subject: Re: Get metadata for query
| > | 
| > | Ah, there's the problem- what is a fast way to fetch all fields
| > | in a
| > | collection, including dynamic fields?
| > | 
| > | ----- Original Message -----
| > | | From: "Otis Gospodnetic" <otis.gospodne...@gmail.com>
| > | | To: solr-user@lucene.apache.org
| > | | Sent: Friday, October 26, 2012 3:05:04 PM
| > | | Subject: Re: Get metadata for query
| > | |
| > | | Hi,
| > | |
| > | | No... but you could simply query your index, get all the fields
| > | | you
| > | | need and process them to get what you need.
| > | |
| > | | Otis
| > | | --
| > | | Search Analytics -
| > | | http://sematext.com/search-analytics/index.html
| > | | Performance Monitoring - http://sematext.com/spm/index.html
| > | |
| > | |
| > | | On Fri, Oct 26, 2012 at 10:19 AM, Torben Honigbaum
| > | | <torben.honigb...@neuland-bfi.de> wrote:
| > | | > Hi everybody,
| > | | >
| > | | > with http://localhost:8983/solr/admin/luke it's possible to
| > | | > get
| > | | > metadata for all indices. But is there a way to get only the
| > | | > metadata for a special query? I want to query all documents
| > | | > which
| > | | > are in a special category. For the query I need the metadata
| > | | > containing a list of all fields of the documents.
| > | | >
| > | | > Thank you
| > | | > Torben
| > | | 
| > | 
| > | 
| 
| 

Reply via email to