Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions x-api/posts/search/integrate/build-a-query.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ When [building filtered stream rules](/x-api/posts/filtered-stream/integrate/bui

## Long posts

Search queries are matched against a Post's `text` field. For long posts (more than 280 characters), `text` contains only the first ~280 characters, so keywords, phrases, hashtags, and other text that appear only after that point are not matched.
Recent search, full-archive search, and Post counts match long posts (more than 280 characters) on their full text, not only the first ~280 characters. Repost matching is the exception: a Repost is matched on its own shortened `RT @user:` text, so words that appear only further into the original Post do not match the Repost. To match on that text, query for the original Post instead.

To get the full text of a long post in the response, request `tweet.fields=note_tweet`. The full text is returned in `note_tweet.text`, but it is not used for matching.
In the response, the top-level `text` field of a long post is still shortened. To get the full text, request `tweet.fields=note_tweet`. The full text is returned in `note_tweet.text`.

---

Expand Down
2 changes: 1 addition & 1 deletion x-api/posts/search/integrate/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Queries use operators to match Posts. Combine operators with boolean logic:
| Enterprise | 4,096 chars | 4,096 chars |

<Note>
These limits count characters. The full percent-encoded request URL must also stay under about 16 KB, which non-ASCII queries can reach well before the character limit. Long posts are matched only on their first ~280 characters. See [Build a query](/x-api/posts/search/integrate/build-a-query#request-size) for details.
These limits count characters. The full percent-encoded request URL must also stay under about 16 KB, which non-ASCII queries can reach well before the character limit. See [Build a query](/x-api/posts/search/integrate/build-a-query#request-size) for details. Long posts are matched on their full text; see [Long posts](/x-api/posts/search/integrate/build-a-query#long-posts).
</Note>

### Operator types
Expand Down
Loading