Re: Match a phrase like "Apple iPhone 6 32GB white" with "iphone 6"

2018-04-08 Thread Sami al Subhi
I think this filter will output the desired result: indexing: "iPhone 6" will be indexed as "iphone 6" (always a single token) querying: so this will analyze "Apple iPhone 6 32GB white" to "apple", "apple iphone", "iphone", "iphone 6" and so on... then here a match wi

Match a phrase like "Apple iPhone 6 32GB white" with "iphone 6"

2018-04-08 Thread Sami al Subhi
I have a set of products' docs with field name_en for example name_en:"Apple iPhone 6 32GB white" when a user chooses this product to view, I use the product name as a search phrase and retrieve all the product accessories docs that have "iphone 6" (not "iphone 7") in the field of compatible_with

Re: Atomic updates using solr-php-client

2018-03-05 Thread Sami al Subhi
Thank you for replying, Yes that is the one. Unfortunately there is no documentation for this library. I tried to implement other libraries but I couldn't get them running. This is the easiest library to implement but lacks support and documentation. Thank you and best regards, Sami -- Sent f

Atomic updates using solr-php-client

2018-03-05 Thread Sami al Subhi
I am using solr-php-client to interact with solr. I came this example that shows how to add docs: http://www.ayalon.ch/en/code-samples/solr-php-client-example I checked "service.php" file, more specifically the function "_documentToXml

Re: No match when querying but in admin/analysis it works!! (schema, indexed data and screen shots are provided)

2018-01-06 Thread Sami al Subhi
Thank Erick. Your thoughts are correct and solved the problem. I appreciate you looking at my problem and sorry for the late reply. Of course, providing enough data, evidence that I've tried to solve it and easy to understand problem structure are very important in order to encourage others and m

No match when querying but in admin/analysis it works!! (schema, indexed data and screen shots are provided)

2018-01-01 Thread Sami al Subhi
data_to_be_indexed.xml schema.xml *above I uploaded a copy of my schema and data* *I have this in my schema.xml*

Re: Limit edismax search to a certain field value and find out matched fields on the results

2017-12-31 Thread Sami al Subhi
thank you for your reply Erick. That solved the problem. q=iphone +category:phones -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Limit edismax search to a certain field value and find out matched fields on the results

2017-12-31 Thread Sami al Subhi
Hello, I have these query parameters: 'q' => "iphone", 'echoParams' => "explicit", 'defType' =>'edismax', 'fl' => 'name,category,score', 'qf' =>'name_suggest_edge^50 name_suggest_exact^50 name_suggest_ngram', 'pf' =>'name_suggest_edge^100 ' 1) How can I limit the search to the docs