Skip to content

Commit

Permalink
rename field to be more self-explanatory
Browse files Browse the repository at this point in the history
  • Loading branch information
ChillFish8 committed Aug 20, 2021
1 parent ecbc13d commit 858a96b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions engine/src/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ fn parse_more_like_this(ref_document: DocAddress) -> Box<dyn Query> {
pub struct QueryHit {
/// The address of the given document, this can be used for
/// 'more like this' queries.
ref_address: String,
document_id: String,

/// The content of the document itself.
doc: NamedFieldDocument,
Expand Down Expand Up @@ -602,7 +602,7 @@ macro_rules! process_search {

if let Value::U64(v) = id[0] {
hits.push(QueryHit {
ref_address: format!("{}", v),
document_id: format!("{}", v),
doc,
});
} else {
Expand Down Expand Up @@ -900,7 +900,7 @@ impl IndexHandler {

if let Value::U64(v) = id[0] {
Ok(QueryHit {
ref_address: format!("{}", v),
document_id: format!("{}", v),
doc,
})
} else {
Expand Down

0 comments on commit 858a96b

Please sign in to comment.