Git Product home page Git Product logo

kassis's People

Contributors

nakamura-akifumi avatar

Watchers

 avatar

kassis's Issues

webアプリでviewのテンプレート読込エラーが発生する

起動するとエラーが出てしまう。

$ bin/webserver
panic: html/template: pattern matches no files: `./views/*.html`

goroutine 1 [running]:
html/template.Must(...)
        D:/tools/go/src/html/template/template.go:374
main.(*Renderer).ReloadTemplates(0xc0001183c0)
        D:/Users/anakamura/GolandProjects/kassis/cmd/webserver/server.go:53 +0xa8
main.NewRenderer(...)

検索結果をわかりやすくする

検索結果がわかりにくいので修正

  • 検索条件未設定の場合は検索しない
  • 結果を1つずつ枠で囲うなどして判別できるようにする
  • 結果のメタ情報も出す
  • ヒットした文言はハイライトする

NDL書誌データファイル(一括版)を取り込む時の処理を改良する

1件ずつaddしてcommitしているので遅いと思われる。
まとめて処理をして高速化を行う。
現状500件で3分30秒。

{"level":"debug","time":"2022-09-18T22:59:00+09:00","message":"Solr Ping status:OK qtime:0\n"}
1/5 filename:testdata\ndl\000013.xml
2/5 filename:testdata\ndl\000462.xml
3/5 filename:testdata\ndl\001872.xml
4/5 filename:testdata\ndl\001873.xml
5/5 filename:testdata\ndl\001874.xml
Elapsed: 3m30.7603923s

ファイルを指定できるようにする

対応すること

  • 引数でファイルもしくはフォルダを指定できるようにする
  • エクセルファイルとPDFファイルをサポートする
  • エクセルのシート名に対応する
  • 同じファイル名なら更新する
  • 検索は Solr Admin の Query で確認する

solrパッケージの変更

パッケージを自前に変更する。
github.com/vanng822/go-solrがメンテ停止中で既に思うようにならないこともあり変更する。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.