search any field name having a specific value

2017-03-17 Thread Cristian Lorenzetto
it is possible create a query searching any document containing any field having value == X?

Re: search any field name having a specific value

2017-03-17 Thread Corbin, J.D.
​You might take a look at MultiFieldQueryParser. I believe it allows you to search multiple index fields at the same time. J.D. Corbin Senior Research Engineer Advanced Computing & Data Science Lab 3075 W. Ray Road Suite 200 Chandler, AZ 85226-2495 USA M: (303) 912-0958 E: jd.cor...@pears

Re: search any field name having a specific value

2017-03-17 Thread Cristian Lorenzetto
It permits to search in a predefined lists of fields that you have to know in advance. In my case i dont know what is the fieldname. maybe WildcardQuery? 2017-03-17 19:30 GMT+01:00 Corbin, J.D. : > ​You might take a look at MultiFieldQueryParser. I believe it allows you > to search multiple inde

How to customize the delimiters used by the WordDelimiterFilter in Lucene?

2017-03-17 Thread phauly
Hi, I am trying to index words like 'e-mail' as 'email', 'e mail' and 'e-mail' with Lucene 4.4.0. Lucene's WordDelimiterFilter should be ideal for this. However, it treats every(?) non-alphanumeric character as a delimiter. So, terms like 'C++' are transformed to 'C', which is not what I want.

Re: search any field name having a specific value

2017-03-17 Thread Corbin, J.D.
Hi, I am not sure if there is a way to specify a search against all fields in the index without knowing the fields. WildcardQuery probably won't work since it does target a specific field within the index. The specification of the index field comes in the definition of the Term that is passed as

Re: search any field name having a specific value

2017-03-17 Thread Ahmet Arslan
Hi, You can retrieve the list of field names using LukeRequestHandler. Ahmet On Friday, March 17, 2017 9:53 PM, Cristian Lorenzetto wrote: It permits to search in a predefined lists of fields that you have to know in advance. In my case i dont know what is the fieldname. maybe WildcardQuer

Re: search any field name having a specific value

2017-03-17 Thread Lokesh Madan
May be, index the field names as metadata file. When when querying, first get list of alls fields and then shoot a query. You can do this 2 hop query, or else maintain some cache and then shoot a query. > On Mar 17, 2017, at 11:53 AM, Cristian Lorenzetto > wrote: > > It permits to search in a

Re: search any field name having a specific value

2017-03-17 Thread Marco Reis
You can add a new field called "full_text" and during the indexing time you concatenate all the values of the other fields in it. Do you think it's a good idea for this case? On Fri, Mar 17, 2017 at 6:27 PM Lokesh Madan wrote: > May be, index the field names as metadata file. When when queryin