Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5A18BEEAF for ; Sun, 17 Feb 2013 15:51:17 +0000 (UTC) Received: (qmail 66327 invoked by uid 500); 17 Feb 2013 15:51:13 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 65956 invoked by uid 500); 17 Feb 2013 15:51:13 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 65922 invoked by uid 99); 17 Feb 2013 15:51:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 17 Feb 2013 15:51:11 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 209.85.215.176 is neither permitted nor denied by domain of jackpark@topicquests.org) Received: from [209.85.215.176] (HELO mail-ea0-f176.google.com) (209.85.215.176) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 17 Feb 2013 15:51:06 +0000 Received: by mail-ea0-f176.google.com with SMTP id a13so2073528eaa.21 for ; Sun, 17 Feb 2013 07:50:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:x-originating-ip:in-reply-to:references :date:message-id:subject:from:to:content-type:x-gm-message-state; bh=EBTXeJIzsGwDWWKdpMwf8PtJKwAad4vQPBdNBBY66r0=; b=Wi0VqJEcFyX5qMe8Wb82xN879kGlF3VDzh7uMOn5Tiyar8aURJzUGKzBmh6QQNbd2J vXu9APg59gIojWww9AIKrK4ASm9FtO9POoxlv0Aui7NozEHBzbBnbZ4hZHnUn9+j2/Th qn52m6t/QFROKfTLkFDZKDFVVnUSaqshtleB4oJiOEIkkEu3C9NnXXB3WrzRwKx6fcBn 3hlCUeEKWxQ+Fab1i6QIkp1wV3r+UZAOdM0F+r5lPIu6wrJLdl49cPijLvcnwkty8kP7 Eaq8b6MEzvptO9Iyv0snG64/mFwlhIDEIOtXy/gjmHAu0539V+vatz++nAKVcb+C6Op6 0MPw== MIME-Version: 1.0 X-Received: by 10.14.0.135 with SMTP id 7mr33582417eeb.5.1361116242078; Sun, 17 Feb 2013 07:50:42 -0800 (PST) Received: by 10.14.101.142 with HTTP; Sun, 17 Feb 2013 07:50:41 -0800 (PST) X-Originating-IP: [173.164.129.250] In-Reply-To: References: <3CF6AFFB-6275-4A4C-A4E0-B02786470E3F@gmail.com> Date: Sun, 17 Feb 2013 07:50:41 -0800 Message-ID: Subject: Re: Introducing Solrstrap: A blazing fast tool for querying Solr in a Googleish fashion From: Jack Park To: solr-user@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQl3zBS/ijSWvD76E81ogoA7aRE4KG19ZWkpc/ZtyKiVbkWHOaH/Bjda9G0U0rbf1ThyHMfP X-Virus-Checked: Checked by ClamAV on apache.org Hi Fergus, Would it make sense to you to switch to the Apache 2 license so that your project can "play nice" in the apache ecosystem? Thanks Jack On Sun, Feb 17, 2013 at 6:25 AM, Fergus McDowall wrote: > Erik > > Thanks for the great feedback. It fills me with joy to know that another > human being has chosen to use Solrstrap > > 1) I have added a couple more CONST variables to the code to allow the > implementer to specify the names of the hit body and hit title > (re: exampledocs/*.xml) > > 2) In order to pass a full document to the hit-template you could simply to > this: > > rs.append(hitTemplate({doc: result.response.docs[i]})); > > and then change the hit template so that it references each hit as "doc" > and subfields thereof {{doc.somefield}} > > > > 3) As for the license- I take your ribbing in the spirit in which it was > intended :) Seriously though- this is my first open source contribution, so > I haven't given licensing a lot of though. What would a more appropriate > license be? > > Fergie > > On Sun, Feb 17, 2013 at 12:43 PM, Erik Hatcher wrote: > >> Fergie - >> >> Nice! >> >> I was able to get this working on a Solr 4.1 "example" instance following >> these steps: >> >> * Adjusting SERVERROOT in bootstrap/js/solrstrap.js to >> http://localhost:8983/solr/collection1/select/ >> * Changed line #38 in the same file to this: >> >> rs.append(hitTemplate({title: result.response.docs[i].name, >> text: result.response.docs[i].text})); >> >> Just changing ".title" to ".name" since Solr's exampledocs/*.xml files use >> "name" not "title". >> >> I like projects like this, making it really point and click easy to see >> and work with Solr. I'll just point out the important caveat that you >> mention, that it's "Designed for "open" solr instances" and "needs clear >> access to /select", as this is something easy to overlook at first >> (beautiful) glance and think we can just go to production without taking >> the necessary other steps to prevent Solr from being exposed directly. >> >> This is a nice start to a fun way to get started with Solr. >> >> A few questions: >> >> What would it take to get the full document object passed into the hit >> template? And what would that hit template then look like? (navigating >> say a "doc" object in the template rather than each field being passed >> explicitly) >> >> Right now it's called from the above line of code (is hitTemplate() >> mapping to the id="hit-template" in solrstramp.html part of handlebars >> magic? Or is this explicit somewhere?) >> >> Here's the current hit template: >> >> >> >> And finally... GPL?! ewww, why?! (-1) :) >> >> Well played, Fergus! >> >> Erik >> >> >> On Feb 17, 2013, at 05:35 , Fergus McDowall wrote: >> >> > Solrstrap is a very basic Query-Result interface for Solr. Solrstrap is >> intended to be a starting point for those building web interfaces that talk >> to Solr, or a very lightweight admin tool for querying Solr in a Googleish >> fashion. >> > >> > Cool things about Solrstrap: >> > >> > * Requires only local installation- easy to set up >> > * Access to all Bootstrap functionality. Can be easily extended in a >> Bootstrappy way. >> > * Blazing fast >> > * Uses less bandwidth >> > >> > Use it as you see fit. Merciless criticism and fawning praise equally >> welcome. >> > >> > See http://fergiemcdowall.github.com/solrstrap/ >> > >> > and >> > >> > http://blog.comperiosearch.com/blog/2013/02/17/introducing-solrstrap/ >> > >> > Fergus >> > >> > >> >>