Suppose my user types in a search string with multiple words, like
"yellow car".
I want to find all documents that have both words, not necessarily
adjacent or in the same order, but not documents that contain only one
of the words.
If I used something like termQuery("description", "yellow car"), what
would this produce?
Do I need to parse the individual words out of the search string
myself to accomplish what I want?
or this, to breakdown your query string before searching
If you're not familiar with Lucene, you may want to read about analyzers.
They're the things that breakdown full text into indexable/searchable
pieces.
Suppose my user types in a search string with multiple words, like
"yellow car".
I want to find all documents that have both words, not necessarily
adjacent or in the same order, but not documents that contain only one
of the words.
If I used something like termQuery("description", "yellow car"), what
would this produce?
Do I need to parse the individual words out of the search string
myself to accomplish what I want?
If you're not familiar with Lucene, you may want to read about analyzers.
They're the things that breakdown full text into indexable/searchable
pieces.
Suppose my user types in a search string with multiple words, like
"yellow car".
I want to find all documents that have both words, not necessarily
adjacent or in the same order, but not documents that contain only one
of the words.
If I used something like termQuery("description", "yellow car"), what
would this produce?
Do I need to parse the individual words out of the search string
myself to accomplish what I want?
If you're not familiar with Lucene, you may want to read about analyzers.
They're the things that breakdown full text into indexable/searchable
pieces.
Suppose my user types in a search string with multiple words, like
"yellow car".
I want to find all documents that have both words, not necessarily
adjacent or in the same order, but not documents that contain only one
of the words.
If I used something like termQuery("description", "yellow car"), what
would this produce?
Do I need to parse the individual words out of the search string
myself to accomplish what I want?
If you're not familiar with Lucene, you may want to read about analyzers.
They're the things that breakdown full text into indexable/searchable
pieces.
Suppose my user types in a search string with multiple words, like
"yellow car".
I want to find all documents that have both words, not necessarily
adjacent or in the same order, but not documents that contain only one
of the words.
If I used something like termQuery("description", "yellow car"), what
would this produce?
Do I need to parse the individual words out of the search string
myself to accomplish what I want?
If you're not familiar with Lucene, you may want to read about analyzers.
They're the things that breakdown full text into indexable/searchable
pieces.
Suppose my user types in a search string with multiple words, like
"yellow car".
I want to find all documents that have both words, not necessarily
adjacent or in the same order, but not documents that contain only one
of the words.
If I used something like termQuery("description", "yellow car"), what
would this produce?
Do I need to parse the individual words out of the search string
myself to accomplish what I want?
If you're not familiar with Lucene, you may want to read about analyzers.
They're the things that breakdown full text into indexable/searchable
pieces.
Suppose my user types in a search string with multiple words, like
"yellow car".
I want to find all documents that have both words, not necessarily
adjacent or in the same order, but not documents that contain only one
of the words.
If I used something like termQuery("description", "yellow car"), what
would this produce?
Do I need to parse the individual words out of the search string
myself to accomplish what I want?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.