in fav_stores i see "Banana Republic" and "Ann Taylor" there .. and i am
searching it with the capitals.
On 10/9/06, Erick Erickson <[EMAIL PROTECTED]> wrote:
OK, when you look in the "fav_stores" field in Luke, what do you see?
And, are you searching on "Banana Republic" with the capitals? I
I would guess that one of your assumptions is wrong...
The assumptions to check are:
At indexing:
- lpf.getLuceneFieldName() == "fav_stores"
- pa.getPersonProfileChoice().getChoice() == "Banana Republic"
At search:
- the query is created like this:
new TermQuery(new Term("fav_stores","Banana R
OK, when you look in the "fav_stores" field in Luke, what do you see?
And, are you searching on "Banana Republic" with the capitals? If so, and
your index has the letters in lower case, that's your problem.
Erick
On 10/9/06, Ismail Siddiqui <[EMAIL PROTECTED]> wrote:
I am using StandardAnalyz
I am using StandardAnalyzer while indexing the field..
I am also a creatign a field called full_text in which i am adding all
these individual fields as TOKENIZED.
here is the code
while(choiceIt.hasNext()){
PersonProfileAnswer pa=(PersonProfileAnswer)choiceIt.next();
if(p
> I am trying to index a field which has more than one word with space e.g.
> "My Word"
> i am indexng it UN_TOKENIZED .. but when i use TermQuery to query "My
Word"
> its not yielding any result..
Seems that it should work.
Few things to check:
- make sure you are indexing with UN_TOKENIZED.
- c
How are you breaking up your query? That is, what analyzer are you using for
query parsing? Or are you building your own query programmatically?
Also, what about capitalization? Some of the analyzers automatically
lower-case the terms, either at index time or query time (or both). If
there's a mi
Hi All
I am trying to index a field which has more than one word with space e.g.
"My Word"
i am indexng it UN_TOKENIZED .. but when i use TermQuery to query "My Word"
its not yielding any result.. if I index it TOKENIZED and use phrase query..
then use
phrase query then it yields result on all 3