All Projects → omeroot → solwr

omeroot / solwr

Licence: other
Apache Solr nodejs wrapper

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to solwr

Querqy
Query preprocessor for Java-based search engines (Querqy Core and Solr implementation)
Stars: ✭ 122 (+577.78%)
Mutual labels:  solr
Query Translator
Query Translator is a search query translator with AST representation
Stars: ✭ 165 (+816.67%)
Mutual labels:  solr
Conceptualsearch
Train a Word2Vec model or LSA model, and Implement Conceptual Search\Semantic Search in Solr\Lucene - Simon Hughes Dice.com, Dice Tech Jobs
Stars: ✭ 245 (+1261.11%)
Mutual labels:  solr
Spotlight
Spotlight enables librarians, curators, and others who are responsible for digital collections to create attractive, feature-rich websites that highlight these collections.
Stars: ✭ 137 (+661.11%)
Mutual labels:  solr
Solrtexttagger
A text tagger based on Lucene / Solr, using FST technology
Stars: ✭ 162 (+800%)
Mutual labels:  solr
Xbin Store
模仿国内知名B2C网站,实现的一个分布式B2C商城 使用Spring Boot 自动配置 Dubbox / MVC / MyBatis / Druid / Solr / Redis 等。使用Spring Cloud版本请查看
Stars: ✭ 2,140 (+11788.89%)
Mutual labels:  solr
Srchx
A standalone lightweight full-text search engine built on top of blevesearch and Go with multiple storage (scorch, boltdb, leveldb, badger)
Stars: ✭ 118 (+555.56%)
Mutual labels:  solr
go-solr
Solr client in Go, core admin, add docs, update, delete, search and more
Stars: ✭ 67 (+272.22%)
Mutual labels:  solr
Code4java
Repository for my java projects.
Stars: ✭ 164 (+811.11%)
Mutual labels:  solr
Typo3 Docker Boilerplate
🍲 TYPO3 Docker Boilerplate project (NGINX, Apache HTTPd, PHP-FPM, MySQL, Solr, Elasticsearch, Redis, FTP)
Stars: ✭ 240 (+1233.33%)
Mutual labels:  solr
Fxdesktopsearch
A JavaFX based desktop search application.
Stars: ✭ 147 (+716.67%)
Mutual labels:  solr
Tis Solr
an enterprise search engine base on Apache Solr
Stars: ✭ 158 (+777.78%)
Mutual labels:  solr
Extract
A cross-platform command line tool for parallelised content extraction and analysis.
Stars: ✭ 188 (+944.44%)
Mutual labels:  solr
Transformalize
Configurable Extract, Transform, and Load
Stars: ✭ 125 (+594.44%)
Mutual labels:  solr
Sola
Scene search On Liresolr for Animation. (and video)
Stars: ✭ 253 (+1305.56%)
Mutual labels:  solr
Ext Solr
A TYPO3 extension that integrates the Apache Solr search server with TYPO3 CMS. dkd Internet Service GmbH is developing the extension. Community contributions are welcome. See CONTRIBUTING.md for details.
Stars: ✭ 118 (+555.56%)
Mutual labels:  solr
Open Semantic Etl
Python based Open Source ETL tools for file crawling, document processing (text extraction, OCR), content analysis (Entity Extraction & Named Entity Recognition) & data enrichment (annotation) pipelines & ingestor to Solr or Elastic search index & linked data graph database
Stars: ✭ 165 (+816.67%)
Mutual labels:  solr
goobi-viewer-core
Goobi viewer - Presentation software for digital libraries, museums, archives and galleries. Open Source.
Stars: ✭ 18 (+0%)
Mutual labels:  solr
query-segmenter
Solr Query Segmenter for structuring unstructured queries
Stars: ✭ 21 (+16.67%)
Mutual labels:  solr
Relevant Search Book
Code and Examples for Relevant Search
Stars: ✭ 231 (+1183.33%)
Mutual labels:  solr

npm version

Solwr

Solr nodejs wrapper, mongoose inspired

Getting Started

Prerequisites

  • Solr >= 5

You should install solr server

solr create_core -c querytest
solr create_core -c products

Installing

npm install --save solwr

Running the tests

npm run test

Example

Performing create core, you should create core on server

config server

solwr.address( {
  host: "http://<ip or domain>",
  port: <port>
} );

get core

solwr.core(<core_name>, <opts>)

// return core
var users = solwr.core('users');

you try duplicate core throw duplicate error.

opts
* wt //request and respones type (json, xml)

remove core

users.removeCore()
     .exec()
     .then(<success_callback>)
     .then(null, <error_callback>);


alternatively

users.removeCore(function(err, data){
 if(err) handle err
});

create document

users.create({id: '1', name: 'omer'}, <opts>)
     .exec()
     .then(<success_callback>)
     .then(null, <error_callback>)


//document array
users.create([{id: '1', name: 'omer'}, {id: '2', name: 'markakod'}], <opts>)
     .exec()
     .then(<success_callback>)
     .then(null, <error_callback>)


this alternative is usable all of query

users.create({id: '1', name: 'omer'}, function(err, data){
  if(err) handle err
});


opts
* dataFormat //json, xml

find

//get documents by query
users.find("*:*", <opts>)
     .exec()
     .then(function(_users){
       //use response users
     })
     .then(null, function(err){
       //handle error
     })

opts
* format //json, xml

only

//if you want only data, response contains
users.find("*:*", <opts>)
     .only()
     .exec()
     .then(<success_callback>)
     .then(null, <error_callback>)

opts
* format //json, xml

xml response is not parsed, is string

sort

//get documents by query
users.find("*:*")
     .sort("id desc")
     .only()
     .exec()
     .then(<success_callback>)
     .then(null, <error_callback>)

opts
* format //json, xml

limit

//get documents by query
users.find("*:*", <opts>)
     .limit(4)
     .exec()
     .then(<success_callback>)
     .then(null, <error_callback>)

opts
* format //json, xml

skip

//get documents by query
users.find("*:*", <opts>)
     .skip(100)
     .exec()
     .then(<success_callback>)
     .then(null, <error_callback>)

if you want, you can pagination with skip and limit functions

opts
* format //json, xml

remove document

//get documents by query
users.remove("id:1", <opts>)
     .exec()
     .then(<success_callback>)
     .then(null, <error_callback>)

opts
* format //json, xml

Built With

  • Axios - request library

Built With

heavily inspired by mongoose

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].