This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"github.com/go-ego/gse" | |
) | |
func main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{/* Generates an array of blog contents for indexing orama */}} | |
{{- $.Scratch.Add "item" slice -}} | |
{{- $section := $.Site.GetPage "section" .Section }} | |
{{- range .Site.AllPages -}} | |
{{- if or (and (.IsDescendant $section) (and (not .Draft) (not .Params.private))) $section.IsHome -}} | |
{{- if (and (eq .Section "post") .File) -}} | |
{{- if .Params.Tags -}} | |
{{- $.Scratch.Add "item" (dict "id" .File.UniqueID "date" .Date.UTC.Unix "dir" .File.Dir "lang" .Lang "lastmod" .Lastmod.UTC.Unix "permalink" .Permalink "publishdate" .PublishDate "title" .Title "tags" .Params.Tags "summary" .Summary "contents" .Plain)}} | |
{{- else -}} | |
{{- $.Scratch.Add "item" (dict "id" .File.UniqueID "date" .Date.UTC.Unix "dir" .File.Dir "lang" .Lang "lastmod" .Lastmod.UTC.Unix "permalink" .Permalink "publishdate" .PublishDate "title" .Title "summary" .Summary "contents" .Plain)}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PUT join_highlight | |
{ | |
"mappings": { | |
"properties": { | |
"my_id": { | |
"type": "keyword" | |
}, | |
"my_join_field": { | |
"type": "join", | |
"relations": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## version 7.9で動作するはずです。 discard_compound_tokenの設定は7.8までは動作しないです(それ以外については動作します。) | |
DELETE en_synonym_test | |
PUT en_synonym_test | |
{ | |
"settings": { | |
"analysis": { | |
"analyzer": { | |
"en_synonym": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
start with punctuation: [606]. one char is [384] | |
all punctuations: [111] | |
hasPunctuations: [1780] | |
+++++++++++++++++ Start with Punctuation +++++++++++++++++++++ | |
¡ | |
¢ | |
£ | |
¤ | |
¦ | |
§ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
start with punctuation: [101]. one char is [97] | |
all punctuations: [3] | |
hasPunctuations: [723] | |
+++++++++++++++++ Start with Punctuation +++++++++++++++++++++ | |
」 | |
— | |
← | |
゜ | |
▽ | |
` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 0. インデックスの準備 | |
### 再現可能なようにまず削除 | |
DELETE file_dic_sample | |
### 辞書ファイルの用意 | |
ファイル名 : custom_dic.txt | |
配置場所 : ES_PATH_CONF/analyzer/custom_dic.txt | |
内容 | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## For rewrite prezto default settings | |
EDITOR=vim | |
VISUAL=vim | |
### aliases | |
alias ls='ls -aG' | |
alias vscode='open -a ~/Applications/Visual\ Studio\ Code.app ' | |
### For ant | |
export ANT_OPTS=-Dfile.encoding=UTF-8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!-- | |
Licensed to the Apache Software Foundation (ASF) under one or more | |
contributor license agreements. See the NOTICE file distributed with | |
this work for additional information regarding copyright ownership. | |
The ASF licenses this file to You under the Apache License, Version 2.0 | |
the "License"); you may not use this file except in compliance with | |
the License. You may obtain a copy of the License at | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/IdeaProjects/lucene-gosen-workspace/lucene-solr/lucene/analysis/kuromoji (fix-4056 *$) $ ant clean | |
Buildfile: /Users/johtani/IdeaProjects/lucene-gosen-workspace/lucene-solr/lucene/analysis/kuromoji/build.xml | |
clean: | |
[delete] Deleting directory /Users/johtani/IdeaProjects/lucene-gosen-workspace/lucene-solr/lucene/build/analysis/kuromoji | |
BUILD SUCCESSFUL | |
Total time: 0 seconds | |
~/IdeaProjects/lucene-gosen-workspace/lucene-solr/lucene/analysis/kuromoji (fix-4056 *$) $ ant build-dict | |
Buildfile: /Users/johtani/IdeaProjects/lucene-gosen-workspace/lucene-solr/lucene/analysis/kuromoji/build.xml |
NewerOlder