Re: Query expansion

2016-11-30 Thread hariram ravichandran
I am overriding getFieldQuery(String field, String fieldText,boolean quoted). And in case of phrase query, getFieldQuery(String field, String queryText, int slop) will be called. And prefix query will not be my use case. So, we can ignore prefix query. Assume this is my only case. Sequence of

Re: Query expansion

2016-11-29 Thread Michael McCandless
This is likely tricky to do correctly. E.g., MultiFieldQueryParser.getFieldQuery is invoked on whole chunks of text. If you search for: apple orange I suspect it won't do what you want, since the whole string "apple orange" is passed to getFieldQuery. How do you want to handle e.g. a phrase

Query expansion

2016-11-28 Thread hariram ravichandran
I need to perform *fuzzy search* for the whole search term. I extended MultiFieldQueryParser and overridden getFieldQuery() protected Query getFieldQuery(String field, String fieldText,boolean quoted) throws ParseException{ return *super.getFuzzyQuery(field,fieldText,3.0f); //construct

Re: Synonym Query Expansion / Gaps / UnsupportedOperationException wrt SpanNearQuery

2016-05-16 Thread Daniel Bigham
www.flax.co.uk > On 13 May 2016, at 22:33, Daniel Bigham wrote: >> I am experimenting with supporting synonyms on the query side by doing query > > expansion. >> For example, the query "open webpage" can be expanded if the following things > > are synonyms:

Re: Synonym Query Expansion / Gaps / UnsupportedOperationException wrt SpanNearQuery

2016-05-14 Thread Alan Woodward
This looks like a bug - can you open a JIRA ticket? Alan Woodward www.flax.co.uk On 13 May 2016, at 22:33, Daniel Bigham wrote: > I am experimenting with supporting synonyms on the query side by doing query > expansion. > > For example, the query "open webpage"

Synonym Query Expansion / Gaps / UnsupportedOperationException wrt SpanNearQuery

2016-05-13 Thread Daniel Bigham
I am experimenting with supporting synonyms on the query side by doing query expansion. For example, the query "open webpage" can be expanded if the following things are synonyms: "open" | "go to" This becomes the following: (I'm using both the stop w

Re: Query Expansion for Synonyms

2016-04-28 Thread Ahmet Arslan
6:26 PM, Daniel Bigham wrote: I'm investigating various ways of supporting synonyms in Lucene. One such approach that looks potentially interesting is to do a kind of "query expansion". For example, if the user searches for "us 1888", one might expand the query as follo

Query Expansion for Synonyms

2016-04-28 Thread Daniel Bigham
I'm investigating various ways of supporting synonyms in Lucene. One such approach that looks potentially interesting is to do a kind of "query expansion". For example, if the user searches for "us 1888", one might expand the query as follows: Span

Re: Query expansion in Lucene (4.x)

2013-07-17 Thread Jack Krupansky
We don't commonly use the term "query expansion" for Lucene and Solr, but I would say that there are two categories of "QE": 1. Lightweight QE, by which I mean things like synonym expansion, stemming, stopword removal, spellcheck, and anything else that modifies the r

Query expansion in Lucene (4.x)

2013-07-17 Thread Michael O'Leary
I was reading a paper about Query Expansion ( http://search.fub.it/claudio/pdf/CSUR-2012.pdf) and it said: "For instance, Google Enterprise, MySQL and Lucene provide the user with an AQE facility that can be turned on or off." I searched through the Lucene 4.1.0 source code, which is w

How to implement multi term synonym query expansion that support query parser syntax?

2013-05-26 Thread Guy Moshkowich
Hi, I'm looking for a way to implement multi term synonym query expansion i.e., I would like to expend phrase query like "big dog" to return documents containing "big hush puppies". This implementation should support queries with lucene query parser syntax i.e., queries l

Query expansion in lucene

2011-12-20 Thread starz10de
Hi, Does lucene have a query expansion class () which works regardless of the intended language (e.g., it shouldn’t be based on Wordnet). It doesn’t matter if the expanded terms can be stored in the index or can be obtained in the run time. I googled and found SynonymAnalyzer however, I

Re: Query Expansion Module for Lucene based on BM25 ranking function

2008-10-23 Thread Joaquin Perez Iglesias
-BM25/ Best Regards. José Ramón Perez Aguera wrote: Hi Grant, Our query expansion approach is quite simple, we apply pseudo-relevance feedback techniques, where a number of top retrieved documents are used to extract the terms candidates to expand the original query. We have used

Re: Query Expansion Module for Lucene based on BM25 ranking function

2008-10-22 Thread José Ramón Perez Aguera
Hi Grant, Our query expansion approach is quite simple, we apply pseudo- relevance feedback techniques, where a number of top retrieved documents are used to extract the terms candidates to expand the original query. We have used TermPositions in query time to extract the term statistics

Re: Query Expansion Module for Lucene based on BM25 ranking function

2008-10-22 Thread Grant Ingersoll
amón Pérez Agüera wrote: Hello, We have implemented a research module for lucene using BM25 and our structured version of BM25 as ranking functions and a couple of state-of-art query expansion algoritms. This implementation is quite different to other query expansion modules for Lucene that are av

Query Expansion Module for Lucene based on BM25 ranking function

2008-10-21 Thread José Ramón Pérez Agüera
Hello, We have implemented a research module for lucene using BM25 and our structured version of BM25 as ranking functions and a couple of state-of-art query expansion algoritms. This implementation is quite different to other query expansion modules for Lucene that are available in the web. We