You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 4, 2023. It is now read-only.
I have the following index for searching full text.
{
"fulltext": {
"search": {
"index": "function(doc) { var ret=new Document(); ret.add(doc._id,{'field': '_id', 'boost': 2.0}); ret.add(doc.pid,{'field': 'pid', 'boost': 3.0}); ret.add(doc.artist_id,{'field': 'artist_id', 'boost': 3.0}); ret.add(doc.artist_name,{field:artist_name,'boost': 100.0}); ret.add(doc.object_title,{'field': 'object_title', 'boost': 300.0}); ret.add(doc.description ,{'field': 'description', 'boost': 80.0}); ret.add(doc.portfolio_info,{'field': 'portfolio_info'}); ret.add(doc.edition,{'field': 'edition'}); return ret }"
}
}
}
I need to get results from object_title shows first, then with artist_name, then show the remaining results.
Can you please help me where I am going wrong?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have the following index for searching full text.
{
"fulltext": {
"search": {
"index": "function(doc) { var ret=new Document(); ret.add(doc._id,{'field': '_id', 'boost': 2.0}); ret.add(doc.pid,{'field': 'pid', 'boost': 3.0}); ret.add(doc.artist_id,{'field': 'artist_id', 'boost': 3.0}); ret.add(doc.artist_name,{field:artist_name,'boost': 100.0}); ret.add(doc.object_title,{'field': 'object_title', 'boost': 300.0}); ret.add(doc.description ,{'field': 'description', 'boost': 80.0}); ret.add(doc.portfolio_info,{'field': 'portfolio_info'}); ret.add(doc.edition,{'field': 'edition'}); return ret }"
}
}
}
I need to get results from object_title shows first, then with artist_name, then show the remaining results.
Can you please help me where I am going wrong?
The text was updated successfully, but these errors were encountered: