🌎
Web Map
  • Web map
  • Denormalized Data
  • V2 web map
  • Customizable web map
  • Like
  • User profile
  • Wallet app
  • SEO
  • Search
  • The Wallet Web Application
  • V1 Implementation Timeline
  • React Coding Practices
  • Denormalization Migration
  • CSS and MaterialUI Guideline
  • Tile Server Specification
  • Search
    • Solr research
    • Config web map beta
Powered by GitBook
On this page
  • Dev environment
  • Some search cases:
  • Deployment

Was this helpful?

  1. Search

Solr research

PreviousTile Server SpecificationNextConfig web map beta

Last updated 2 years ago

Was this helpful?

Dev environment

Some search cases:

  • Everthing

  • Basic, search by keywords:

  • Search mutiple words (or)

    http://localhost:8888/solr/mycoll/select?q=publisher_s:(SETA Namco)

  • Search crossing fields:

    q=title:(Desert FighterEU) OR publisher_s:Namco

  • Search with wild

    q=publisher_s:*am*

    q=publisher_s:Nam*

  • Fuzzy search

    To search words that have a 2 charaters distance with the given keyword:

    publisher_s:Nam~2

  • Range search:

    q=year_i:[1993 TO 1994]

  • Change the rank/relevant of result:

    search both in title and publisher, but the publisher get higher releevant:

    q=title:ActRaiser OR publisher_s:Namco^4

Deployment

Currently, we just deployed a single node, 300M, in the future, we will consider deploying the cluster version.

There is a basic deployment under infrastrature, solr folder.

To initiate the solr and create a core:

kubectl -n webmap exec deployment/treetracker-solr -it -- solr create -c mycoll

To import data into solr and index:

curl "https://dev-k8s.treetracker.org/search/solr/mycoll/update?commit=true" \
  -H "Content-Type: application/json" -T "snes.json" -X POST -v

https://dev-k8s.treetracker.org/search/solr/#/mycoll/query?q=publisher_s:*am*&q.op=OR&indent=true
http://localhost:8888/solr/mycoll/select?q=*:*
http://localhost:8888/solr/mycoll/select?q=publisher_s:Namco
163KB
snes.json
The sample data