You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Eric Pugh <ep...@opensourceconnections.com> on 2010/12/02 16:35:14 UTC

Path to jquery?

Hi all,

Looking at Solr 3.x, it seems like that path to jquery fails if you are using multicore.  

In layout.vm there is:

<script type="text/javascript" src="#{url_for_solr}/admin/jquery-1.2.3.min.js"></script>

However, for other files it is specified via:

  <script type="text/javascript" src="#{url_for_solr}/admin/file?file=/velocity/jquery.autocomplete.js&contentType=text/javascript"></script>


Thinking that the URL for jquery should be the same as the other jquery.autocomplete.js, and packaged in the /velocity directory as well???

Eric


-----------------------------------------------------
Eric Pugh | Principal | OpenSource Connections, LLC | 434.466.1467 | http://www.opensourceconnections.com
Co-Author: Solr 1.4 Enterprise Search Server available from http://www.packtpub.com/solr-1-4-enterprise-search-server
Free/Busy: http://tinyurl.com/eric-cal









---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: Path to jquery?

Posted by Eric Pugh <ep...@opensourceconnections.com>.
You are quite right.  I put a bug into JIRA, basically the layout.vm was referring to a older version of jquery then what was in the Solr.war file!  I do think though that having everything all in the /velocity directory would make it easier for someone who is new to Solr to grok how to customize the /browse interface!  Most folks do NOT want to be adding/hacking files in the solr.war, they just want to use what is distributed!

Eric



On Dec 2, 2010, at 4:45 PM, Ryan McKinley wrote:

> jquery is actually in the .war file, so you read it directly from the server.
> 
> The file?file=/velocity... request streams content from inside your
> solr configuration directory
> 
> 
> 
> On Thu, Dec 2, 2010 at 10:35 AM, Eric Pugh
> <ep...@opensourceconnections.com> wrote:
>> Hi all,
>> 
>> Looking at Solr 3.x, it seems like that path to jquery fails if you are using multicore.
>> 
>> In layout.vm there is:
>> 
>> <script type="text/javascript" src="#{url_for_solr}/admin/jquery-1.2.3.min.js"></script>
>> 
>> However, for other files it is specified via:
>> 
>>  <script type="text/javascript" src="#{url_for_solr}/admin/file?file=/velocity/jquery.autocomplete.js&contentType=text/javascript"></script>
>> 
>> 
>> Thinking that the URL for jquery should be the same as the other jquery.autocomplete.js, and packaged in the /velocity directory as well???
>> 
>> Eric
>> 
>> 
>> -----------------------------------------------------
>> Eric Pugh | Principal | OpenSource Connections, LLC | 434.466.1467 | http://www.opensourceconnections.com
>> Co-Author: Solr 1.4 Enterprise Search Server available from http://www.packtpub.com/solr-1-4-enterprise-search-server
>> Free/Busy: http://tinyurl.com/eric-cal
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: dev-help@lucene.apache.org
>> 
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
> 

-----------------------------------------------------
Eric Pugh | Principal | OpenSource Connections, LLC | 434.466.1467 | http://www.opensourceconnections.com
Co-Author: Solr 1.4 Enterprise Search Server available from http://www.packtpub.com/solr-1-4-enterprise-search-server
Free/Busy: http://tinyurl.com/eric-cal









---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: Path to jquery?

Posted by Ryan McKinley <ry...@gmail.com>.
jquery is actually in the .war file, so you read it directly from the server.

The file?file=/velocity... request streams content from inside your
solr configuration directory



On Thu, Dec 2, 2010 at 10:35 AM, Eric Pugh
<ep...@opensourceconnections.com> wrote:
> Hi all,
>
> Looking at Solr 3.x, it seems like that path to jquery fails if you are using multicore.
>
> In layout.vm there is:
>
> <script type="text/javascript" src="#{url_for_solr}/admin/jquery-1.2.3.min.js"></script>
>
> However, for other files it is specified via:
>
>  <script type="text/javascript" src="#{url_for_solr}/admin/file?file=/velocity/jquery.autocomplete.js&contentType=text/javascript"></script>
>
>
> Thinking that the URL for jquery should be the same as the other jquery.autocomplete.js, and packaged in the /velocity directory as well???
>
> Eric
>
>
> -----------------------------------------------------
> Eric Pugh | Principal | OpenSource Connections, LLC | 434.466.1467 | http://www.opensourceconnections.com
> Co-Author: Solr 1.4 Enterprise Search Server available from http://www.packtpub.com/solr-1-4-enterprise-search-server
> Free/Busy: http://tinyurl.com/eric-cal
>
>
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org