forked from Philippus/elastic4s
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed old show instances, renamed some files Philippus#1279
- Loading branch information
Showing
127 changed files
with
1,008 additions
and
1,204 deletions.
There are no files selected for viewing
70 changes: 0 additions & 70 deletions
70
elastic4s-core/src/main/scala/com/sksamuel/elastic4s/DefinitionAttributes.scala
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
elastic4s-core/src/main/scala/com/sksamuel/elastic4s/ExistsApi.scala
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
package com.sksamuel.elastic4s | ||
|
||
trait ExistsApi { | ||
def exists(id: String, index: Index, `type`: String): ExistsDefinition = ExistsDefinition(id, index, `type`) | ||
def exists(id: String, index: Index, `type`: String): ExistsRequest = ExistsRequest(id, index, `type`) | ||
} | ||
|
||
case class ExistsDefinition(id: String, index: Index, `type`: String) | ||
case class ExistsRequest(id: String, index: Index, `type`: String) |
164 changes: 82 additions & 82 deletions
164
elastic4s-core/src/main/scala/com/sksamuel/elastic4s/TypesApi.scala
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
6 changes: 0 additions & 6 deletions
6
elastic4s-core/src/main/scala/com/sksamuel/elastic4s/indexes/DeleteIndex.scala
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
elastic4s-core/src/main/scala/com/sksamuel/elastic4s/indexes/DeleteIndexApi.scala
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
package com.sksamuel.elastic4s.indexes | ||
|
||
trait DeleteIndexApi { | ||
def deleteIndex(indexes: String*): DeleteIndex = deleteIndex(indexes) | ||
def deleteIndex(indexes: Iterable[String]): DeleteIndex = DeleteIndex(indexes.toSeq) | ||
def deleteIndex(indexes: String*): DeleteIndexRequest = deleteIndex(indexes) | ||
def deleteIndex(indexes: Iterable[String]): DeleteIndexRequest = DeleteIndexRequest(indexes.toSeq) | ||
} |
3 changes: 3 additions & 0 deletions
3
elastic4s-core/src/main/scala/com/sksamuel/elastic4s/indexes/DeleteIndexRequest.scala
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package com.sksamuel.elastic4s.indexes | ||
|
||
case class DeleteIndexRequest(indexes: Seq[String]) |
6 changes: 0 additions & 6 deletions
6
elastic4s-core/src/main/scala/com/sksamuel/elastic4s/indexes/GetIndex.scala
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
elastic4s-core/src/main/scala/com/sksamuel/elastic4s/indexes/GetIndexRequest.scala
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package com.sksamuel.elastic4s.indexes | ||
|
||
case class GetIndexRequest(index: String) |
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
4 changes: 2 additions & 2 deletions
4
elastic4s-core/src/main/scala/com/sksamuel/elastic4s/indexes/PutMappingBuilderFn.scala
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
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
18 changes: 0 additions & 18 deletions
18
...tic4s-core/src/main/scala/com/sksamuel/elastic4s/indexes/admin/ForceMergeDefinition.scala
This file was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
elastic4s-core/src/main/scala/com/sksamuel/elastic4s/indexes/admin/ForceMergeRequest.scala
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.sksamuel.elastic4s.indexes.admin | ||
|
||
import com.sksamuel.exts.OptionImplicits._ | ||
|
||
case class ForceMergeRequest(indexes: Seq[String], | ||
flush: Option[Boolean] = None, | ||
maxSegments: Option[Int] = None, | ||
onlyExpungeDeletes: Option[Boolean] = None) { | ||
|
||
def flush(flush: Boolean): ForceMergeRequest = copy(flush = flush.some) | ||
def maxSegments(maxSegments: Int): ForceMergeRequest = copy(maxSegments = maxSegments.some) | ||
|
||
/** | ||
* Should the optimization only expunge deletes from the index, without full optimization. | ||
* Defaults to full optimization (<tt>false</tt>). | ||
*/ | ||
def onlyExpungeDeletes(expunge: Boolean): ForceMergeRequest = copy(onlyExpungeDeletes = expunge.some) | ||
} |
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
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
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
Oops, something went wrong.