huygensing / solr-faceted-search-react Goto Github PK
View Code? Open in Web Editor NEWSolr faceted search client and react component pack
License: Other
Solr faceted search client and react component pack
License: Other
Dear all,
Has anyone successfully (re)built the components pack with the current watch.sh script ?
I can't stop getting the following error:
SyntaxError: /Users/julienchevalier/node_modules/solr-faceted-search-react/src/api/server.js: Unexpected token (8:126)
6 | let server = {};
7 |
8 | server.performXhr = function (options, accept, reject = () => { console.warn("Undefined reject callback! "); (console.trace||()=>{})(); }) {
| ^
9 | xhr(options, accept, reject);
10 | };
Hello.
I wonder if there exists any more documentation than there is in a README file? I am trying to set up solr-facated-search-react but I am having problem with guessing which field types are viable options for fields defined in my solr core.
and add small css block to example
I have troubles to reuse the project with typescript.
If I follow default examples then SolrClient typing is missing getHandlers();
If I want to use the component lego, then I need to cast.
const TextSearch = defaultComponentPack.searchFields.text as any;
Even then I have trouble to access correctly.
state.query.searchFields and state.results.docs
How to use Component Lego with typescript, can you make some example?
Hi,
I created a new app using create-react-app
. Then installed this module using npm i solr-faceted-search-react --save
. And replaced the content in index.js with the provided content in the readme file. I get following error
Error: Cannot find module 'react' bundle.js%20line%202857%20%3E%20eval:1:551 ./~/solr-faceted-search-react/build/index.js Critical dependencies: 1:490-497 This seems to be a pre-built javascript file. Though this is possible, it's not recommended. Try to require the original source to get better results. @ ./~/solr-faceted-search-react/build/index.js 1:490-497webpackHotDevClient.js?:196:7
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.