Skip to content

Commit

Permalink
indexer4j: Rename from index4j
Browse files Browse the repository at this point in the history
  • Loading branch information
haeungun committed Jan 20, 2019
1 parent 5cf7727 commit afa753a
Show file tree
Hide file tree
Showing 41 changed files with 638 additions and 296 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[![Build Status](https://travis-ci.com/haeungun/index4j.svg?branch=master)](https://travis-ci.com/haeungun/index4j)
[![codecov](https://codecov.io/gh/haeungun/index4j/branch/master/graph/badge.svg)](https://codecov.io/gh/haeungun/index4j)
[![Build Status](https://travis-ci.com/haeungun/index4j.svg?branch=master)](https://travis-ci.com/haeungun/indexer4j)
[![codecov](https://codecov.io/gh/haeungun/index4j/branch/master/graph/badge.svg)](https://codecov.io/gh/haeungun/indexer4j)

# index4j
# indexer4j
Simple full text indexing and searching library for Java

## Install
### Gradle
``` gradle
repositories {
maven {
url "https://dl.bintray.com/haeungun/index4j"
url "https://dl.bintray.com/haeungun/indexer4j"
}
}
```
Expand All @@ -22,6 +22,7 @@ repositories {
- Support ngram, wordgram
- Parrallel build and search
- Support JDK 11 CI on travis CI (Jacoco not supports yet)
- Improve saving and loading features

## Examples
```java
Expand Down
14 changes: 7 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
group 'index4j'
group 'indexer4j'
version '0.1.0-SNAPSHOT'

apply plugin: 'java'
Expand All @@ -25,15 +25,15 @@ dependencies {
}

publish {
repoName = 'index4j'
repoName = 'indexer4j'
userOrg = 'haeungun'
groupId = 'com.haeungun.index4j'
artifactId = 'index4j'
groupId = 'com.haeungun.indexer4j'
artifactId = 'indexer4j'
publishVersion = '0.1.0'
desc = 'Simple full text indexing and searching library for Java'
website = 'https://github.com/haeungun/index4j'
issueTracker = 'https://github.com/haeungun/index4j/issues'
repository = 'https://github.com/haeungun/index4j.git'
website = 'https://github.com/haeungun/indexer4j'
issueTracker = 'https://github.com/haeungun/indexer4j/issues'
repository = 'https://github.com/haeungun/indexer4j.git'
}

jacocoTestReport {
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
rootProject.name = 'index4j'
rootProject.name = 'indexer4j'

28 changes: 0 additions & 28 deletions src/main/java/com/haeungun/index4j/DocumentMeta.java

This file was deleted.

11 changes: 0 additions & 11 deletions src/main/java/com/haeungun/index4j/annotation/Document.java

This file was deleted.

11 changes: 0 additions & 11 deletions src/main/java/com/haeungun/index4j/annotation/DocumentField.java

This file was deleted.

11 changes: 0 additions & 11 deletions src/main/java/com/haeungun/index4j/annotation/DocumentId.java

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

13 changes: 0 additions & 13 deletions src/main/java/com/haeungun/index4j/core/tokenizer/Tokenizer.java

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

44 changes: 44 additions & 0 deletions src/main/java/com/haeungun/indexer4j/DocumentMeta.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/*
* Copyright (C) 2019 The Indexer4j Authors
*
* Licensed 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.haeungun.indexer4j;

import java.util.List;

public class DocumentMeta {

private final String docId;
private final List<String> tokenizedWords;

public DocumentMeta(String docId, List<String> tokenizedWords) {
this.docId = docId;
this.tokenizedWords = tokenizedWords;
}

public String getDocId() {
return this.docId;
}

public List<String> getTokenizedWords() {
return this.tokenizedWords;
}

@Override
public String toString() {
return "DocumentMeta{docId=" + this.docId
+ ", tokenizedWords=" + this.tokenizedWords.toString() + "}";
}
}
Loading

0 comments on commit afa753a

Please sign in to comment.