Comments (5)
Can you show me your changes?
On 2012-03-12, at 1:05 PM, Matteo Redaelli wrote:
Hello,
I changed the tutorial reuters to index/show results from a "db query". With IE7 and IE8 (firefox and chrome work fine) I get the error at line 30 of file reuters.theme.js
return $('').text(value).click(handler);
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322; .NET4.0C; .NET4.0E)
Timestamp: Mon, 12 Mar 2012 16:45:32 UTCMessage: Object doesn't support this property or method
Line: 30
Char: 3
Code: 0
URI: http://XXXX/ajax-solr/data/lizeo/js/reuters.theme.jsMessage: Object doesn't support this property or method
Line: 1
Char: 1
Code: 0
URI: http://XXXX:8983/solr/select?facet=true&facet.field=allText&facet.field=BRAND&facet.field=WEBSITE&facet.field=MARKET&facet.field=MATERIAL&facet.field=BI_SIZE&facet.field=SEASONALITY&facet.field=PREMIUM&facet.field=DISABLED&facet.field=ITEM_TYPE&facet.field=POSITIONING&facet.field=TREND&facet.field=PRICING_SIZE&q=_%3A_&facet.limit=100&facet.mincount=1&f.BRAND.facet.limit=50&f.MARKET.facet.limit=-1&json.nl=map&wt=json&json.wrf=jsonp1331570179826&_=1331570179873Any suggestions?
Regards
Matteo
Reply to this email directly or view it on GitHub:
#8
from ajax-solr.
Hi,
I indexed a custom database.. the solution I found is chaning the file ResultWidget.js below the short modification...
AjaxSolr.ResultWidget = AjaxSolr.AbstractWidget.extend({
beforeRequest: function () {
$(this.target).html($('').attr('src', 'images/ajax-loader.gif'));
},
facetLinks: function (facet_field, facet_values) {
var links = [];
if (facet_values) {
for (var i = 0, l = facet_values.length; i < l; i++) {
/* old
links.push(AjaxSolr.theme('facet_link', facet_values[i], this.facetHandler(facet_field, facet_values[i])));
/
/ new */
if(facet_values[i] != undefined)
links.push(AjaxSolr.theme('facet_link', facet_values[i], this.facetHandler(facet_field, facet_values[i])));
else
links.push(AjaxSolr.theme('no_items_found'));
}
}
return links;
},
from ajax-solr.
Sounds like this issue is closed then?
from ajax-solr.
It solved my issue.
But, please, evaluate if my small patch of ResultWidget.js could be inserted in your git sources...
Regards
Matteo
from ajax-solr.
Done!
from ajax-solr.
Related Issues (20)
- Add a widget that uses MoreLikeThis
- Support for SpellCheckComponent HOT 1
- Add a widget that uses TermsComponent
- Add a widget for multiselect facets with configurable operand
- Inheritance not working? HOT 5
- Websolr integration HOT 7
- Better escaping
- auto widget creation based on return factes HOT 1
- Demo not working HOT 3
- PagerWidget.js / ParameterHistoryStore.js / history.js IE Issue HOT 2
- Unable to fetch data from local solr application using ajax solr HOT 3
- Add a bower package
- ERROR: Cannot read property 'length' of undefined HOT 1
- Demo website broken? HOT 1
- Not able to fetch reuters data HOT 13
- Not able to show the Calendar widget HOT 2
- Phrase level autosuggestions using suggesters
- Demo Site Not Working HOT 6
- Ajax-Solr not work after change jquery.min.js 1.7.2 to newer version (1.11.2)
- Range widget
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ajax-solr.