From: Tod O. <to...@uc...> - 2013-05-03 11:05:52
|
No worries, it was meant to be a reply-all. And I'm really glad this starts to look relatively simple. The biggest thing I see with #1 is figuring out whether there would be a need for any rudimentary result-set navigation links, or whether raw would be good enough for its limited purposes. Is there a way to specify theme in the URL? -Tod On May 3, 2013, at 5:47 AM, Demian Katz <dem...@vi...> wrote: > I'm passing this message back to the list since I think others may be interested -- I hope you don't mind. > > Actually, #1 is not difficult at all -- the search system doesn't have to enter into it. You're basically interested in finding out what data is available in the record driver, and every record driver has a getRawData() method regardless of its origin. You can't predict what format the raw data will take (could be an object or an array or something else -- it's up to the driver to internally use the data as it sees fit), but a template that simply calls var_dump on $this->driver->getRawData() would probably tell you everything you need to know. You could even create a "debug record" page which is only accessible in development mode and which uses the record driver template inheritance mechanism to allow driver-specific debug pages; then var_dump() could be the default mode, but more targeted displays could be accomplished on a case by case basis. > > #2 might also be relatively simple: the search backend code already generates debug information which it sends to the logger. Perhaps we could add a configuration setting somewhere to get extra-verbose logging, which would cause the backend to add debugQuery=true to the search and then dump the debug response to the logger. That means you could see it on screen by turning on debug mode, or you could capture it to some other target (file, db, etc.) through appropriate logger configuration. > > - Demian > ________________________________________ > From: Tod Olson [to...@uc...] > Sent: Thursday, May 02, 2013 1:10 PM > To: Demian Katz > Cc: Tod Olson > Subject: Re: "pass-through" theme? > > Hmm, and 0abstraction is usually our friend. > > So there are two use cases that I see, which I think are separable: > > 1. developer needs to see what is actually available to templates for display, and > 2. site admin wants to use the searchspecs.yaml configuration and get solr details while tuning (or doing regression testing) on ranking. > > Maybe 1 could come out of the abstraction somehow, as it would be more about available data rather than Solr details. 2 would then be a different animal, maybe it's own module with a very narrow scope. Must think more on this. > > -Tod > > > On May 2, 2013, at 8:00 AM, Demian Katz <dem...@vi...> > wrote: > >> Right now, the closest thing you can do is turn on debug mode and then copy-and-paste the query URL to another browser tab. Obviously this is pretty far from what you describe -- it's driven by a config.ini setting rather than a URL parameter, and accessing the Solr response is rather indirect. >> >> I agree that something more direct could be useful, though I don't have a great idea about how to implement it -- the new search system is designed to abstract away the low-level Solr details, and the search abstraction is shared between multiple search systems (Summon, WorldCat, etc.). The solution might involve adding a new method (or feature interface) to obtain a debug-level view of the search results, implement that for all of the search backends, and then figure out a way to push that data all the way to the view under certain circumstances. Definitely non-trivial. >> >> - Demian >> >>> -----Original Message----- >>> From: Tod Olson [mailto:to...@uc...] >>> Sent: Wednesday, May 01, 2013 2:57 PM >>> To: vuf...@li... Tech >>> Subject: [VuFind-Tech] "pass-through" theme? >>> >>> It would be useful at times the raw Solr results from a search or full-record >>> view in VuFind: theme developers want to see what data is available to them, >>> could be used to automate testing of results and ranking in a theme- >>> independant way, that sort of thing. >>> >>> Is there a parameter we can set in VuFind URLs to show the raw Solr output, or >>> otherwise effect a sort of pass-through theme? >>> >>> Best, >>> >>> -Tod >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET >>> Get 100% visibility into your production application - at no cost. >>> Code-level diagnostics for performance bottlenecks with <2% overhead >>> Download for free and get started troubleshooting in minutes. >>> http://p.sf.net/sfu/appdyn_d2d_ap1 >>> _______________________________________________ >>> Vufind-tech mailing list >>> Vuf...@li... >>> https://lists.sourceforge.net/lists/listinfo/vufind-tech > |