Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

size parameter #11

Open
ghost opened this issue Jan 14, 2015 · 3 comments
Open

size parameter #11

ghost opened this issue Jan 14, 2015 · 3 comments

Comments

@ghost
Copy link

ghost commented Jan 14, 2015

When I use as size parameter a value that is equal or bigger than total, I do not get back all results.

E.g. _termlist?field=autocomplete_object&term=kan&size=6

total: 4,
terms: [
{
name: “kandelaars”
},
{
name: “kandelabers”
},
{
name: “kantoorstempels”
}

]

E.g. _termlist?field=autocomplete_object&term=kan&size=4

total: 4,
terms: [
{
name: “kandelaars”
},

{
name: “kandelabers”
},
{
name: “kantoorstempels”
}
]

What am I missing?

@jprante
Copy link
Owner

jprante commented Jan 14, 2015

Thanks, good catch! I released 1.4.0.1 with a fix.

@DirkDE
Copy link

DirkDE commented Mar 10, 2015

It seems the issue is not completely fixed yet.

Our plugin versions (running on a cluster):
URL=*/es/_cat/plugins
anna index-termlist-1.4.0.1-6f289d0 1.4.0.1 j
lena index-termlist-1.4.0.1-6f289d0 1.4.0.1 j

Full termlist (no size prameter):
URL=*/es/test/artefact/_termlist?field=autocomplete_person&term=rub&totalfreqs&sortbytotalfreqs&pretty=true
{
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"total" : 2,
"terms" : [ {
"name" : "rubbens",
"totalfreq" : 49
}, {
"name" : "rubens",
"totalfreq" : 14
} ]
}

Same termlist with (any) size parameter:
URL=*/es/test/artefact/_termlist?field=autocomplete_person&term=rub&totalfreqs&sortbytotalfreqs&pretty=true&size=100
{
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"total" : 2,
"terms" : [ {
"name" : "rubbens",
"totalfreq" : 49
} ]
}

Could you please check?
Thanks!

@DirkDE
Copy link

DirkDE commented Mar 27, 2015

Hi,
Any news on this issue? If you need additional info just let me know.
Txs!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants