Skip to content

Commit 340e2c0

Browse files
committed
server piece relocated to atlas-search-java-server repo
1 parent 6e82299 commit 340e2c0

File tree

1 file changed

+1
-50
lines changed

1 file changed

+1
-50
lines changed

README.md

+1-50
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
This repository contains examples of using Atlas Search with Java.
44

5-
## First Search Example
6-
7-
This First Search Example code was written for the article ["Using Atlas Search From Java"](https://www.mongodb.com/developer/products/atlas/atlas-search-java/).
5+
The First Search Example code was written for the article ["Using Atlas Search From Java"](https://www.mongodb.com/developer/products/atlas/atlas-search-java/).
86

97
This example uses the `run` target and searches the `default` index.
108

@@ -16,53 +14,6 @@ In order to run the `FirstSearchExample`, follow these steps:
1614
* Run the example program:
1715
`ATLAS_URI="<<insert your connection string here>>" ./gradlew run`
1816

19-
## Search Server Example
20-
21-
This Search Server example code was initially written for the article
22-
("How to Build a Search Service in Java with MongoDB")[TBD].
23-
It uses the `jettyRun` target and searches the `movies_index`. The search
24-
server code lives under `server/`
25-
26-
To run the search server locally, follow these steps:
27-
28-
* Add the [sample collections](https://www.mongodb.com/docs/atlas/sample-data/) to your Atlas cluster
29-
* If you're not already an Atlas user, [get started with Atlas](https://www.mongodb.com/docs/atlas/getting-started/)
30-
* [Create an Atlas Search index](https://www.mongodb.com/docs/atlas/atlas-search/tutorial/create-index/) on the `movies` collection, named `movies_index`, using the index
31-
configuration below.
32-
* `cd server/` - work within the server directory.
33-
* Run the search service:
34-
`ATLAS_URI="<<insert your connection string here>>" ./gradlew jettyRun`
35-
* Visit [http://localhost:8080](http://localhost:8080)
36-
37-
`movies_index` index configuration (JSON):
38-
```
39-
{
40-
"analyzer": "lucene.english",
41-
"searchAnalyzer": "lucene.english",
42-
"mappings": {
43-
"dynamic": true,
44-
"fields": {
45-
"cast": [
46-
{
47-
"type": "token"
48-
},
49-
{
50-
"type": "string"
51-
}
52-
],
53-
"genres": [
54-
{
55-
"type": "token"
56-
},
57-
{
58-
"type": "string"
59-
}
60-
]
61-
}
62-
}
63-
}
64-
```
65-
6617
## Questions?
6718

6819
Questions about this repo or how to use Atlas Search and Java together? Ask them in the [MongoDB Community](https://community.mongodb.com).

0 commit comments

Comments
 (0)