Re: Create Best Query For My Case

2018-09-06 Thread thturk
problem is that i am getting back all of the results with matches on fieldCity, whether i have a match on fieldText or not, and i want all results to have at least one match on fieldText. What i have now is basically: +city text1 text2 text3. The only term required to match is the city. The rest

Re: Create Best Query For My Case

2018-08-28 Thread baris . kazar
Are You using MultiFieldQueryParser? i see similar behavior for that parser. That is why i asked for your query string, lets look at Your query string and which parser You are using. Best regards On 8/28/18 8:02 AM, thturk wrote: Occur.MUST is working but problem for my case is when Occur.S

Re: Create Best Query For My Case

2018-08-28 Thread thturk
Occur.MUST is working but problem for my case is when Occur.SHOULD wont return any result then total result will be Occur.MUST 's all result which is a huge resultset. I want my query to return all matched with given search and with speed as possible. in my records my speed is slower then it sho

Re: Create Best Query For My Case

2018-08-27 Thread baris . kazar
Taha,- can you please simplify your case? You need to narrow down more. Best regards - To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org

Create Best Query For My Case

2018-08-27 Thread thturk
Hey i am trying to create some queries which should work like "where . and and" in sql. i have tried boolQuery for that purpose eg; *boolQueryBuilder.add(new BooleanClause(new FuzzyQuery(new Term(fieldCity, city), 0), Occur.FILTER)); boolQueryBuilder.add(new BooleanClause(new WildcardQue