lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ankita shinde <ankitashinde...@gmail.com>
Subject solr user
Date Mon, 06 Sep 2010 09:55:23 GMT
var Manager;

(function ($) {
i have created one file .js ...

  $(function () {
    Manager = new AjaxSolr.Manager({
      solrUrl: 'http://example.solrstuff.org/solrjs/'
    });
    Manager.addWidget(new AjaxSolr.ResultWidget({
      id: 'result',
      target: '#docs'
    }));
    Manager.init();
    Manager.store.addByValue('q', '*:*');
    Manager.doRequest();
  });

})(jQuery);



and included all necessary files in html file..



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>AJAX Solr</title>
  <link rel="stylesheet" type="text/css" href="style1.css" media="screen" />
  <script type="text/javascript" src="jquery-1.4.2.min.js"></script>
  <script type="text/javascript" src="sss.js"></script>
  <script type="text/javascript" src="Core.js"></script>

  <script type="text/javascript" src="AbstractManager.js"></script>
  <script type="text/javascript" src="Manager.jquery.js"></script>
  <script type="text/javascript" src="Parameter.js"></script>
  <script type="text/javascript" src="ParameterStore.js"></script>
  <script type="text/javascript" src="AbstractWidget.js"></script>
  <script type="text/javascript" src="ResultWidget.2.js"></script>
 <script type="text/javascript" src="thm.2.js"></script>

</head>
<body>
  <div id="wrap">
    <div id="header">
      <h1>AJAX Solr Demonstration</h1>
      <h2>Browse Reuters business news from 1987</h2>
    </div>

    <div class="right">
      <div id="result">
        <div id="navigation">
          <ul id="pager"></ul>
          <div id="pager-header"></div>
        </div>
        <div id="docs"></div>
      </div>
    </div>

    <div class="left">
      <h2>Current Selection</h2>
      <ul id="selection"></ul>

      <h2>Search</h2>
      <span id="search_help">(press ESC to close suggestions)</span>
      <ul id="search">

        <input type="text" id="query" name="query"/>
      </ul>

      <h2>Top Topics</h2>
      <div class="tagcloud" id="topics"></div>

      <h2>Top Organisations</h2>
      <div class="tagcloud" id="organisations"></div>

      <h2>Top Exchanges</h2>
      <div class="tagcloud" id="exchanges"></div>

      <h2>By Country</h2>
      <div id="countries"></div>
      <div id="preview"></div>

      <h2>By Date</h2>

      <div id="calendar"></div>

      <div class="clear"></div>
    </div>
    <div class="clear"></div>
  </div>
</body>
</html>


but still its not showing any document on web page...
What changes should i do?


plzzz do reply...

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message