Skip to content

NoamNol/autocomp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

autocomp

Auto-complete with Spring Boot

Usage

Auto-complete

Get all words by prefix (Ignore case):
http://localhost:8080/api/v1/autocomp/?prefix=<prefix>

Limit results with max:
http://localhost:8080/api/v1/autocomp/?prefix=<prefix>&max=<max>

Select groupname (Default to 'default'):
http://localhost:8080/api/v1/autocomp/?prefix=<prefix>&groupname=<groupname>

Example

Get countries that start with 'I', and limit to 4 results:
http://localhost:8080/api/v1/autocomp/?prefix=I&groupname=country&max=4

Result:

[
    "Iraq",
    "Italy",
    "India",
    "Israel"
]

The search is case-insensitive, but the original prefix is used in the results:
http://localhost:8080/api/v1/autocomp/?prefix=iSrA&groupname=country

Result:

[
    "iSrAel"
]

Words

Get all known words:
http://localhost:8080/api/v1/word

About

Auto-complete with Spring Boot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages