slow search term
Posted: Mon Mar 07, 2005 1:46 pm
Hi,
When I run the following search I get a count of 400,000 documents:
tsql "select count(ID) from mytable where mytext like 'policy'"
This search returns about 100,000 docs. Like the one above, it takes a few seconds to run:
tsql "select count(ID) from mytable where mytext like 'wonk'"
Together, this search takes maybe 10 seconds and returns a count of 25,000:
tsql "select count(ID) from mytable where mytext like 'policy wonk'"
However, when I put an underscore in there my search positively crawls:
tsql "select count(ID) from mytable where mytext like 'policy_wonk'"
five, ten minutes....no count returns. I can't understand why.
Here's the index statement we use on the field:
tsql -q "set keepnoise='on';set delexp=0;set addexp='\alnum{1,99}';set addexp='>
>\alpha{1,50},=\alpha{1,50}';create metamorph inverted index indexmytext on mytable(mytext)"
We're using your linux version, with a version number of 4.04.1067366033. What's going on here?
Thanks much...
When I run the following search I get a count of 400,000 documents:
tsql "select count(ID) from mytable where mytext like 'policy'"
This search returns about 100,000 docs. Like the one above, it takes a few seconds to run:
tsql "select count(ID) from mytable where mytext like 'wonk'"
Together, this search takes maybe 10 seconds and returns a count of 25,000:
tsql "select count(ID) from mytable where mytext like 'policy wonk'"
However, when I put an underscore in there my search positively crawls:
tsql "select count(ID) from mytable where mytext like 'policy_wonk'"
five, ten minutes....no count returns. I can't understand why.
Here's the index statement we use on the field:
tsql -q "set keepnoise='on';set delexp=0;set addexp='\alnum{1,99}';set addexp='>
>\alpha{1,50},=\alpha{1,50}';create metamorph inverted index indexmytext on mytable(mytext)"
We're using your linux version, with a version number of 4.04.1067366033. What's going on here?
Thanks much...